1. copyToBitmapFile
- Posted by Patrick.Barnes at transgrid.com.au Dec 09, 2002
- 389 views
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 *********************************************************************** ***********************************************************************
2. copyToBitmapFile
- Posted by Cassidy Napoli <gonzotek at yahoo.com> Oct 03, 2001
- 382 views
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=-
3. Re: copyToBitmapFile
- Posted by "Thomas Parslow (PatRat)" <patrat at rat-software.com> Oct 04, 2001
- 372 views
> 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