Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Reducing the size of BMP files
Message
De
27/08/2001 04:16:54
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Divers
Thread ID:
00549089
Message ID:
00549360
Vues:
14
>>
>>* 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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform