Page 1 of 1

CatchImage - Question

Posted: Mon Sep 08, 2003 3:58 pm
by Hurga
Hi

In the help-files there is an example for catch image using it with a label.
Now heres my question:
Is it possible to catch an image, when I have a ponter (to memory), handled from an other program? Can I catch It. Are there other (faster) ways drawing to that image im memory? (I know that I can write a pixel ...) But my question is how to use the ´2D Drawing´ commands?

Does anyone have a solution?
If it is sophisticated maybe with a piece of code (i´m more or less a newbie)

Thx

Posted: Mon Sep 08, 2003 4:18 pm
by Inner
Yes, as long as the memory pointer is valid, and the image data format is supported by Pure Basic.

Posted: Mon Sep 08, 2003 4:23 pm
by Hurga
OK, it means I can catch it.
The bmp-format means there are 3 4-byte values an the beginning, width, height and color depth?

No other (faster) way.

Right?

Posted: Wed Sep 10, 2003 11:39 am
by TronDoc
Hurga wrote:OK, it means I can catch it.
The bmp-format means there are 3 4-byte values....Right?
http://www.wotsit.org/search.asp?s=graphics
is a very good resource for file formats.
it has an excellent description of
the various .bmp formats.
Joe