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 / difference between bitmaps and images?

Author
Message
skyser
22
Years of Service
User Offline
Joined: 11th Sep 2003
Location: New York, NY
Posted: 13th Sep 2003 22:03
Hi,

Can someone explain the difference between bitmaps and images in DBPro and, if possible, when to use one vs. the other in usage.

Thanks,

--skyser
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 13th Sep 2003 22:07
you load an image from a bmp, you can use the whole thing or a portion of it

-RUST-
ReD_eYe
23
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 13th Sep 2003 22:18
images are used to texture objects mainly, i've only really used bitmaps when working with sprites, generally use image, cos you get more of them, only 32 bitmaps!


Darclyte
23
Years of Service
User Offline
Joined: 13th Jun 2003
Location: Cydonia, Mars
Posted: 14th Sep 2003 00:18
Bitmaps in DB are like seperate screens that the user cannot see.
Images are fixed storage areas for bitmaps.

For example, you could build a Hud or map for your game using a DB bitmap, by pasting 'images' as tiles at various positions on the bitmap. you can also cut and paste specific sections of a bitmap to wherever you want. Think of it as an off screen workspace. The big advantage of a bitmap is that it can be any size you like. But you can only have 32 of them.

Images however, are handled as a single item. It is not possible to cut and paste specific areas of an image (with the arguable exeption of matrix textures). They are the building blocks from which other graphics are made. When you paste an image to the screen you are actually pasting it onto 'bitmap 0'. Images tend to be limited to a specific size by your graphics card, but you can have over 64000 of them loaded if you want.

Hope that makes some form of sense!

Strings are PChars ??????? What a World

Login to post a reply

Server time is: 2026-07-23 16:54:26
Your offset time is: 2026-07-23 16:54:26