Oxygen Basic

Programming => Problems & Solutions => Topic started by: Aurel on April 26, 2011, 12:17:09 AM

Title: Save to bitmap
Post by: Aurel on April 26, 2011, 12:17:09 AM
Hi guys.. :)
What would be simpliest method for saving -content of window -into bitmap file?
Title: Re: Save to bitmap
Post by: Charles Pegge on April 26, 2011, 03:07:50 AM

Hi Aurel,

If you download the latest Oxygen (in progress) .zip. and take a look at examples/GUI/imageWin2.o2bas. It saves a copy of the main window client area to a jpeg file at 50% quality. The system is also capable of saving to bmp, png tiff, and gif by changing the format string

It is simple only in the sense that I have produced the code after descending into the lower bowels of GDIplus hell to extract all the details  ;D

But I hope you will find it useful.

Charles
Title: Re: Save to bitmap
Post by: Aurel on April 26, 2011, 11:28:26 AM
Oh thank you Charles i dont know that :)