Read the memory area of a image? (solved)

Everything else that doesn't fall into one of the other PB categories.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Read the memory area of a image? (solved)

Post by Joakim Christiansen »

Okay, let's say I create a image this way:

Code: Select all

image = GetClipboardImage(#PB_Any)
And now I want to have access to the image-data stored in the memory and for example read the first byte like this:

Code: Select all

Debug PeekB(imageAddress)
But how do I get the image address?

What I want to do is very fast image analyzing and maybe manipulation too. Any advice?

Edit:
Feel free to move this to "Coding Questions", I posted the wrong place.
And btw, the result of my testing can be found here:
http://www.purebasic.fr/english/viewtopic.php?t=37112
Last edited by Joakim Christiansen on Thu Apr 16, 2009 5:31 pm, edited 2 times in total.
I like logic, hence I dislike humans but love computers.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Okay maybe I can use this, haha, looks like I wondered about this before:
http://www.purebasic.fr/english/viewtop ... ry+address :lol:
I like logic, hence I dislike humans but love computers.
dige
Addict
Addict
Posts: 1432
Joined: Wed Apr 30, 2003 8:15 am
Location: Germany
Contact:

Post by dige »

:lol:
Post Reply