Click here to Skip to main content
15,892,480 members
Home / Discussions / C#
   

C#

 
GeneralRe: Shopping Cart Pin
Vasudevan Deepak Kumar16-Dec-07 22:18
Vasudevan Deepak Kumar16-Dec-07 22:18 
GeneralRe: Shopping Cart Pin
Paul Conrad24-Dec-07 20:03
professionalPaul Conrad24-Dec-07 20:03 
Generali need a project Shopping Cart Pin
haibec16-Dec-07 22:13
haibec16-Dec-07 22:13 
GeneralRe: i need a project Shopping Cart Pin
Vasudevan Deepak Kumar16-Dec-07 22:15
Vasudevan Deepak Kumar16-Dec-07 22:15 
GeneralBitmap file size Pin
DannyAdler16-Dec-07 22:02
DannyAdler16-Dec-07 22:02 
GeneralRe: Bitmap file size Pin
Vasudevan Deepak Kumar16-Dec-07 22:17
Vasudevan Deepak Kumar16-Dec-07 22:17 
GeneralRe: Bitmap file size Pin
DannyAdler16-Dec-07 23:33
DannyAdler16-Dec-07 23:33 
GeneralRe: Bitmap file size Pin
Luc Pattyn17-Dec-07 2:49
sitebuilderLuc Pattyn17-Dec-07 2:49 
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.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]


Sorry for any delays in replying, I currently don't always get e-mail notifications.


GeneralRe: Bitmap file size Pin
DannyAdler17-Dec-07 21:10
DannyAdler17-Dec-07 21:10 
GeneralRe: Bitmap file size Pin
Luc Pattyn17-Dec-07 23:56
sitebuilderLuc Pattyn17-Dec-07 23:56 
GeneralEmbedd an OCX Pin
topcatalpha16-Dec-07 21:44
topcatalpha16-Dec-07 21:44 
GeneralRe: Embedd an OCX Pin
CKnig16-Dec-07 21:48
CKnig16-Dec-07 21:48 
GeneralRe: Embedd an OCX Pin
topcatalpha16-Dec-07 22:01
topcatalpha16-Dec-07 22:01 
GeneralRe: Embedd an OCX Pin
CKnig16-Dec-07 22:06
CKnig16-Dec-07 22:06 
GeneralRe: Embedd an OCX Pin
topcatalpha16-Dec-07 22:17
topcatalpha16-Dec-07 22:17 
Generalglobal variables Pin
tasumisra16-Dec-07 21:39
tasumisra16-Dec-07 21:39 
GeneralRe: global variables Pin
CKnig16-Dec-07 21:51
CKnig16-Dec-07 21:51 
GeneralRe: global variables Pin
tasumisra16-Dec-07 21:55
tasumisra16-Dec-07 21:55 
Questionwhat is the value if u add a value more than the maximum value for the data type Pin
cyn816-Dec-07 21:29
cyn816-Dec-07 21:29 
AnswerRe: what is the value if u add a value more than the maximum value for the data type Pin
CKnig16-Dec-07 21:52
CKnig16-Dec-07 21:52 
GeneralRe: what is the value if u add a value more than the maximum value for the data type Pin
cyn816-Dec-07 21:57
cyn816-Dec-07 21:57 
GeneralRe: what is the value if u add a value more than the maximum value for the data type Pin
CKnig16-Dec-07 22:05
CKnig16-Dec-07 22:05 
AnswerRe: what is the value if u add a value more than the maximum value for the data type Pin
Luc Pattyn17-Dec-07 2:53
sitebuilderLuc Pattyn17-Dec-07 2:53 
GeneralVisual Studio Properties Window Pin
half-life16-Dec-07 21:10
half-life16-Dec-07 21:10 
GeneralRe: Visual Studio Properties Window Pin
m@u16-Dec-07 21:20
m@u16-Dec-07 21:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.