O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Bitmap Information Commands

Now that you know how to load and create bitmaps, it is time to move on to some other important commands. Each bitmap has information specific to it. There are three things that every bitmap has—width, height, and depth. The width and height are pretty self-explanatory. The depth is the color depth of a bitmap. DB provides you with commands to find these properties.

Determining the Width, Height, and Color Depth

The BITMAP WIDTH command returns the width of a bitmap. It takes one parameter—the bitmap number. The BITMAP WIDTH command syntax is BITMAP WIDTH (bitmap number) which returns the height in pixels of the bitmap whose number matches the bitmap number. The BitmapInfo program will demonstrate the use of the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required