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 Professional Discussion / I'm having problems moving a bitmap around like a box can you help me please :)

Author
Message
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 8th Aug 2011 21:49
Hi Guys,

I'm having problems moving a bitmap around like a box can you help me please.

I already know how to move around images, boxes, and stuff. I need to move bitmap though.

Here's the code.


darkvee
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 8th Aug 2011 22:18
I don't think that's what the bitmaps are intended for.

Maybe explain a bit what you are trying to do. There is probably a better way.

darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 8th Aug 2011 22:34
Hi KISTech,

I'm using a heightmap generator. I notice with load image it takes forever to load up but with bitmap it's super fast when using the point command. Example with bitmap like 3 seconds and loading image 2 or 3 minutes. lol

darkvee
darkvee
20
Years of Service
User Offline
Joined: 18th Nov 2005
Location:
Posted: 8th Aug 2011 23:03
See KISTech the bitmap should move like this.

here the code


darkvee
KISTech
18
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 8th Aug 2011 23:05 Edited at: 8th Aug 2011 23:07
If it's just a matter of speed for manipulating the data, you might be better using memblock commands. Then create an image from that when you need to display it.

It's still not all that clear what you are wanting to do, but I hope that helps at least a little.

[edit]
Are you trying to create a box as a cursor to hover over the heightmap showing the area to be worked on?

DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 11th Aug 2011 21:32
The only thing I can think of here is that the copy bitmap command is faster than copy image (or it at least used to be). But I am as mystified by what you are trying to do as anybody. I sometimes use copy bitmap if I am manually setting up double buffering.

What has this to do with a height map generator? If you are using the bitmap to get the height data why do you need to move the bitmap at all? Can't you just move along the bitmap using the point command to get the data needed?

http://s6.bitefight.org/c.php?uid=103081

Login to post a reply

Server time is: 2026-07-10 20:57:49
Your offset time is: 2026-07-10 20:57:49