Author Topic: Save to bitmap  (Read 1982 times)

0 Members and 1 Guest are viewing this topic.


  • Guest
Save to bitmap
« on: April 26, 2011, 12:17:09 AM »
Hi guys.. :)
What would be simpliest method for saving -content of window -into bitmap file?

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4205
    • Oxygen Basic
Re: Save to bitmap
« Reply #1 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.



  • Guest
Re: Save to bitmap
« Reply #2 on: April 26, 2011, 11:28:26 AM »
Oh thank you Charles i dont know that :)