1. copyToBitmapFile

Is there a better way to capture the contents of a window than using
copyToBitmapFile?
Alternatively, How could I place controls onto a bitmap?

=======================
Patrick Barnes
Information Systems Group
201 Elizabeth St, Sydney
Patrick.Barnes at tg.nsw.gov.au
Ext: 91-3583
Ph:(02) 9284-3583
Mob: 0410 751 044


***********************************************************************




***********************************************************************

new topic     » topic index » view message » categorize

2. copyToBitmapFile

This is my first attempt at a serious Euphoria program, but I've managed 
to get up to the very last point of what I want to do and somethings 
wrong.

What I'm trying to do is get some status information from my computer, 
turn it into an image, and finally, upload that image to my website.  
I'm turning the text into an image by trying to take a snapshot of a 
small portion of my window if it has updated, checking every second with 
an onTimer event.  This works fine.  No errors come up and I've checked 
to make sure that what is supposed to be happening is actually 
happening.  But sometimes, and I can't get it to reliably reproduce, the 
.bmp I'm trying to save somes out corrupted.  I haven't added the upload 
code yet, I'm referring to the .bmp produced by copyToBitmapFile.

My question is:  Is there any problems I might not be aware about with 
using copyToBitmapFile, or is it likely some error in my code?

I am only trying to write the image every few minutes, the status 
doesn't change much, and I have tried deleting the old file before 
updating, renaming it, etc.

If anyone could shed any light on this (or another way I could aproach 
it) I would be so SO appreciative!

-=Cassidy=-

new topic     » goto parent     » topic index » view message » categorize

3. Re: copyToBitmapFile

> This is my first attempt at a serious Euphoria program, but I've managed
> to get up to the very last point of what I want to do and somethings 
> wrong.

> What I'm trying to do is get some status information from my computer, 
> turn it into an image, and finally, upload that image to my website.  
> I'm turning the text into an image by trying to take a snapshot of a 
> small portion of my window if it has updated, checking every second with 
> an onTimer event.  This works fine.  No errors come up and I've checked 
> to make sure that what is supposed to be happening is actually 
> happening.  But sometimes, and I can't get it to reliably reproduce, the 
> .bmp I'm trying to save somes out corrupted.  I haven't added the upload 
> code yet, I'm referring to the .bmp produced by copyToBitmapFile.

> My question is:  Is there any problems I might not be aware about with 
> using copyToBitmapFile, or is it likely some error in my code?

> I am only trying to write the image every few minutes, the status 
> doesn't change much, and I have tried deleting the old file before 
> updating, renaming it, etc.

> If anyone could shed any light on this (or another way I could aproach 
> it) I would be so SO appreciative!

> -=Cassidy=-

Hi,
Try printing everything on to a Pixmap control rather than a window...

Thomas Parslow (PatRat) ICQ #:26359483
Rat Software
http://www.rat-software.com/
Please leave quoted text in place when replying

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu