Re: saving to bitmap files

new topic     » goto parent     » topic index » view thread      » older message » newer message
DanM said...

Does wxEuphoria's save_bitmap allow saving a window as a bitmap?? As I look at the wxEuphoria doc, it doesn't seem to, though I'm not sure & there's no demo for that.

I'm pretty sure the Win32Lib function does scan & save a window, and that's what I'm interested in.

Dan

win32lib docs said...

copyToTrueColorBitmapFile ( window, fileName, x1, y1, x2, y2 )
Copies image from window to file fileName.
Returns: Returns 0 if succeeds.

x1 and y1 refer to the top left pixel corner of the image, and x2 and y2 refer to the bottom right corner of the image.

Note 1: It uses getPixel , so it's slow.
Note 2: It uses the full 24-bit color range (16+ million colors).

Example:

 
          -- save {0,0} {100,100} on the screen to a file 
           copyToTrueColorBitmapFile( Screen, "screen.bmp", 0, 0, 100, 100 ) 

CChris

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu