Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Make Memblock from Get Image

Author
Message
Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 23rd Dec 2008 04:40
For some reason I cant get that to work. Is there a way to make memblock from an image that was grabed off of the screen?
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 23rd Dec 2008 08:18
You can only make a memblock out of a bitmap. I don`t know any other way of doing this except saving the image, and loading it as a bitmap.

TheComet

Peachy, and the Chaos of the Gems

Latch
19
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 23rd Dec 2008 09:42
@Ashingda 27
Use MAKE MEMBLOCK FROM IMAGE <mem num>,<image num> .

Didn't I use that in the change ninja color example you asked about?

Enjoy your day.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 23rd Dec 2008 10:12
Gee, I should get out more... I didn`t know that!

Peachy, and the Chaos of the Gems

Ashingda 27
18
Years of Service
User Offline
Joined: 15th Feb 2008
Location:
Posted: 23rd Dec 2008 21:51 Edited at: 23rd Dec 2008 22:09
@Latch
Yeah I used it in that same example you helped me with, but It doesn't seem to execpt images from the Get Image command.

After loading the ninja image into number 1, I then Get Image into number 10 and Make Memblock from image 10, and it doesn't work.

There wasn't much that I changed.

[edit]

I found a way to make it work. If anyone wants to Make Memblock From Image from an image created by Get Image command you have to Sync befor making the memblock.


The code below will NOT work without the Sync right befor the memblock command.

Login to post a reply

Server time is: 2026-07-05 16:28:44
Your offset time is: 2026-07-05 16:28:44