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 Imgedit control

Status
Not open for further replies.

ATHUEL

Technical User
Sep 23, 2002
29
US
Hi,
does anyone knows why when i tried to save a jpg image loaded into an imgedit control using saveas method, it doesn´t work?
I tried saving the image as a .bmp file and it works fine, but if i try to save it as jpg, it just doesn´t work.

I was looking at the imgedit help and i think that i´m doing all riht, but...

here is a bit of the code i used

form1.imgedit1.image= "c:\001.jpg"
form1.imgedit1.display
form1.imgedit1.saveas "c:\temp\001.jpg",6,6,6,1024,true

also,
i saw that some images can´t be loaded into the control (always suppousing that the format is the correct one)and an error is generated, but if i use an picture box with these images i don´t have any problem. Again, someone knows why it could be happend.

any help would be greatly appreciate
Thanks, Leo.
 

If you read the documentation about the control in its help file you would know why. JPEG compression is copyrighted and as such you do not have the right to create jpeg's.

Now here is how to get around it...

Save as a tiff (tif extension) using jpeg compression then rename the file. Don't ask me why but I believe they put a simple block on it based upon extension of the file name that you pass.

I hope this helps. Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top