|
Malcolm Smart wrote: And you are really su Misra'ble.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I wasn't allowed on on Christmas day at all, and now only having a sneaky 10 minutes whilst the kids are fighting over the Wii box!
Happy new year to you.
Small angry dogs
|
|
|
|
|
Malcolm Smart wrote: whilst the kids are fighting over the Wii box
There was plenty of that around here yesterday.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
All,
as Malcolm suggested i am specifying my problems..
in VB application i have sevral .VB files and each file is starting with module.. then couple of function...
now in C# i have to write some classes and then some common function... but i want to know what should be the criteria of the class i need to impose...
to get the classes...
Thanks In advance....
vikas da
|
|
|
|
|
So these classes are already in .NET? Why do you want to convert them to C#? The whole point about using .NET is that you can be language agnostic, so as long as the code conforms to the CLR and CLT guidelines, it should be usable from ANY .NET language.
|
|
|
|
|
No there are no classes now the code is completely in visual basic.. now i have to decide what are the classes need to be there.. .
thanks alot for ur reply....
vikas da
|
|
|
|
|
I'm confused. First you have files with the .VB extension (these are the .NET version of VB files - in pre .NET, VB files ended in CLS or FRM), and now you say they aren't .NET. Which is it?
|
|
|
|
|
sorry for confusion... yeah it some VB file completely in visualbasic.. No OOPs
write now i am migrating all these thing into c#....
so i want to know the way how can i do same...
vikas da
|
|
|
|
|
The design will completely depend on what you need it to do... We can't help you with such a generic question.
|
|
|
|
|
I just went through this thread and it made no sense at all.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
|
Hi,
How to create a share folder using C# Application
Please Help
|
|
|
|
|
|
Hi all!
I making a project about Shopping Cart by C# 2005. Pleaase tell me about a project free !
Thank you
Hello
|
|
|
|
|
You were already helped here:
<a href="http://www.codeproject.com/script/Forums/View.aspx?fid=1649&msg=2359437">http://www.codeproject.com/script/Forums/View.aspx?fid=1649&msg=2359437</a>[<a href="http://www.codeproject.com/script/Forums/View.aspx?fid=1649&msg=2359437" target="_blank" title="New Window">^</a>]
Do not post the same query multiple times in the discussion forums. Read <a href="http://www.codeproject.com/scrapbook/forumguidelines.asp">http://www.codeproject.com/scrapbook/forumguidelines.asp</a>[<a href="http://www.codeproject.com/scrapbook/forumguidelines.asp" target="_blank" title="New Window">^</a>] on forum posting guidelines.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
haibec wrote: I making a project about Shopping Cart by C# 2005. Pleaase tell me about a project free !
Sorry, I don't do anything for free when it comes to coding
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi all!
I making a project about Shopping Cart by C# 2005. Pleaase tell me about a project free !
Thank you
Hello
|
|
|
|
|
|
What did I just tell you? I don't do free projects. Try working it out yourself.
Don't cross post. It'll only piss people off.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi all!
I making a project about Shopping Cart by C# 2005. Pleaase tell me about a project free !
Thank you
Hello
|
|
|
|
|
|
Hi all,
Is there a way for checking the file size of a Bitmap without saving it to disk (using C#)?
Thanks in advance,
Danny
|
|
|
|
|
Wouldn't using a Temp File be more cleaner approach?
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Vasudevan Deepak K wrote: Wouldn't using a Temp File be more cleaner approach?
Thanks for you quick response.
Yes it would, BUT, I'm trying to limit a Bitmap to a certain file size, say 50kb, so my solution was to loop through the bitmap's dimmensions, while each iteration is scaling the bitmap down.
Now, inside this loop, using IO-write to the disk would be pretty slow...
Any other idea?
Danny
|
|
|
|
|
Hi, some suggestions:
1. you could save in a memory stream and get its size
2. you could do a binary search, example: if original width is 128 try 64; if too small,
try (128+64)/2 = 96, else try (0+64)/2=32; repeat until you reach the optimal size.
3. the file size depends on the image format; some use compression, some don't.
for the ones that don't, the size is proportional to width*height; for those that use
compression, this is also true to some extent.
4. when scaling down the size, for best quality I suggest you always restart from the
original image.
|
|
|
|