Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help with picturebox control

Status
Not open for further replies.

ATHUEL

Technical User
Sep 23, 2002
29
US
HI again,
I wanna know if it´s possible that a picturebox, show images at deepcolor of 24bits, because when i load an image and after that i save it using the savepicture function, i see that the deepcolor of the saved image changes.
there is something that i can do to solve this?

I tried this

picturebox1.picture= loadpicture("c:\001.jpg")
savepicture.picture1.image,"c.\temp\"
 

To begin with you cannot save a jpeg file from a picture box as a jpeg. From help...


If a graphic was loaded from a file to the Picture property of an object, either at design time or at run time, and it’s a bitmap, icon, metafile, or enhanced metafile, it's saved using the same format as the original file. If it is a GIF or JPEG file, it is saved as a bitmap file.


As since it's origional format is changed when you do your save picture it would be expected that in the conversion there would be some changes.

I Hope This Helps. Good Luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top