CatchImage - Question

Just starting out? Need help? Post your questions and find answers here.
Hurga
Enthusiast
Enthusiast
Posts: 148
Joined: Thu Jul 17, 2003 2:53 pm
Contact:

CatchImage - Question

Post 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
User avatar
Inner
PureBasic Expert
PureBasic Expert
Posts: 714
Joined: Fri Apr 25, 2003 4:47 pm
Location: New Zealand

Post by Inner »

Yes, as long as the memory pointer is valid, and the image data format is supported by Pure Basic.
Hurga
Enthusiast
Enthusiast
Posts: 148
Joined: Thu Jul 17, 2003 2:53 pm
Contact:

Post 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?
TronDoc
Enthusiast
Enthusiast
Posts: 310
Joined: Wed Apr 30, 2003 3:50 am
Location: 3DoorsDown

Post 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
peace
[pI 166Mhz 32Mb w95]
[pII 350Mhz 256Mb atir3RagePro WinDoze '98 FE & 2k]
[Athlon 1.3Ghz 160Mb XPHome & RedHat9]
Post Reply