Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GdiPlusX Taking the best form Snapshot
Message
From
30/04/2008 12:49:52
 
 
To
30/04/2008 09:01:27
General information
Forum:
Visual FoxPro
Category:
VFPX/Sedna
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01313831
Message ID:
01314257
Views:
9
>>>>Dear All,
>>>>
>>>>GdiPlusX can take snapshot of form surface. What is the the best possible
>>>>resolution and bitmap format to save those snapshots in a file.
>>>>
>>>>Ideal would be to retain screen original resolution / picture quality.
>>>>
>>>>TIA
>>>>Sergio
>>>
>>>
>>>Hi Sergio,
>>>
>>>For form capturing the best image format is PNG.
>>>It keeps the exact quality of the images, and in a comrpessed format as well.
>>>
>>>Regards
>>>
>>>Cesar
>>
>>Thks+++
>>Sergio
>
>Just to clarify things:
>
>For capturing big pictures, specially for photos, the best result will come from JPEGs. JPEGs loose quality, but for big images, this will not be noticeable.
>
>For form capturing, as in forms we usually have few colors, PNGs offer really great results, sometimes smaller than JPEGs, keeping the exact quality as the original.
>
>For images of up to 20x20, specially for buttons, I use BMPs only. Gifs are good too, but for buttons they don't work nice, and for small image sizes, as GIFs contain a header that contains info abut the image colors.
>
>TIFFs I use more for multiframe images

Thank You Cesar again :)

PNG works for me. I am capturing ActiveX with GdiPlusX quiet good. Now
is there way to capture ActiveX image without ActiveX actually being visible ? GdiPlusX throws error if part of control is hidden by
form border for instance. How about that oActivex.SelPrint() method
can this be used to capture activex as well ?

I found somewhere example of printing it via printer hdc, so I was thinking if it possible somehow to 'cheat' it to 'print' into bitmap instead.

Is this possible ?

TIA
Sergio
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform