gundavarapu
01-19-2003, 04:59 AM
Hi There,
How can we change image resolution, (dpi) in the picture box control.
thanks in advance
bye,
SIDHU
How can we change image resolution, (dpi) in the picture box control.
thanks in advance
bye,
SIDHU
How to change Image Resolution?gundavarapu 01-19-2003, 04:59 AM Hi There, How can we change image resolution, (dpi) in the picture box control. thanks in advance bye, SIDHU Flyguy 01-19-2003, 05:05 AM The DPI thing got me confused, do you want to change to size of a picture? Look up the .Paintpicture method gundavarapu 01-19-2003, 05:28 AM dpi is dots per inch NoteMe 01-19-2003, 06:11 AM But as Flyguy said, do you want to change the size or just the resolution???? SoLoGHoST 01-19-2003, 08:35 AM If you want to change the picture to a better quality or worse quality, then you mean to talk about the BITS as in Bit Depth of the picture. Most BMP's are 24 Bits, some 32 Bits, and the lesser, 16 Bits, but you can always decrease this amount. I think the least I've ever seen a bitmap go was 4 bits, but I'm sure you can even take it to 2 bits. Technically the higher the bits, the better the quality. GIFs are something like 4 bits, and 2 bits. Is this what you are referring to? LedZepp271 01-19-2003, 08:40 AM I think u are incorrect Sologhost, to my understanding, GIF's are 8-16 bits and BMP's as u said are 24 bits (Normally) I suggest gundavarapu use jpegs. Which take small space but have pretty good resolution. ShinyPlasticBag 01-19-2003, 08:45 AM Not that it really matters, but GIFs are 8 bits or less. The lowest they (and BMPs) can go is 1-bit (monochrome). I don't think BMPs can do 32-bit (after all, the extra 8-bits that 32 has over 24-bit images are used for an alpha channel, and bitmaps don't use alpha). I am also pretty sure that there are no 16-bit image formats. In 16-bit screen modes, the color palette is dynamic. Imagine an image file that had to store a palette of 65,536 colors in it. =) That was a bit off topic, though. Sorry. =) NoteMe 01-19-2003, 08:52 AM Yes...BMP can't be 32bit....and I think that Gif and Jpeg kan both be used...for diffrent purposes of cours... SoLoGHoST 01-19-2003, 08:57 AM Originally Posted by: NoteMe Yes...BMP can't be 32bit.... Tell that to Adobe Photoshop 7.0 Flyguy 01-19-2003, 09:29 AM Back to the original question; Do you want to resize your picture or change the color depth? GavinO 01-19-2003, 01:09 PM To resize (I assume this because you mentioned DPI) an image, you use PaintPicture wth many more parameters than is normally healthy. You bascally give a different size in the destination height/width than the source. If your DPI request had to do with printing, you set the DPI that will be printed in the Printer object. You then just have to PaintPicture to the Printer object and call that start/execute/done method (that drop-down on class members is a godsend!) gundavarapu 01-22-2003, 07:38 AM I did mean resolution, anyway tnx to all for all the great stuff regarding the bits. any sample code in this regard would be really handy, once again tnx a lot Flyguy 01-22-2003, 08:30 AM Look up the PaintPicture method in the help. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum