Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Reducing the size of BMP files
Message
From
27/08/2001 04:16:54
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00549089
Message ID:
00549360
Views:
22
>>
>>* please check carefully, this is what I recall from my own exploration
>>* of the control: as I said, I don't use it because I have to produce
>>* JPEG thumbnails
>>oleImage.Image = "filename" && loads image
>>oleImage.Zoom = percent && you'll have to calculate this
>>oleImage.SaveAs("thumbnail",3,0,1,0,.T.)
>>
>
> Slight modification and it mostly works. Thanks. That 0 as the third parameter in the SaveAs method has to be 3. With a 0 or 1 it give an "invalid page type" error. With is set to 2, it exhibits the same extremely lossy compression I get by simply resizing the OLE object in Crystal. With it set to 3 it saves a nice sharp but reduced in size image. Only problem - it comes out black and white! The even stranger thing is that on screen it looks fine. I tried playing with the other parameters, but nothing seems to make a difference. The 4th and 5th seem to be compression type and depth.

Ok, try this, then (this time, it goes tested)
oleImage.SaveAs("thumbnail",3,7,1,0,.T.)
good luck

bye
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform