Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - ==Bitmaps==
Page 1 of 1

PostPosted: Tue Jun 18, 2002 4:26 pm
by beta890
Hello, could some one help me whith bitmap's! Iam makeing a simple picture game and for now just as a test i need a bitmap to show up on the screen but iam having no luck! Here is a bit of the source:

graph_on();
OpenBmpDb("spaceBMP");
index = 0;
wait();
graph_off();

} // end main

What's rong is no bitmap will show on the screen, by the way iam using art bitmap to draw my bitmaps and pocketc 4.3.0 and PToolbox 7.3.6! The bitmap's name is "space" iam now wondering if i typed it rong or did it rong in art bitmap? because it wont load!
spaceBMP? space.prc? space.pbb none of these work and it changes the file name in C:/Palm all the time ie: spaceBMP do in artbitmap and than i look n C:/Palm and its space_bmp?
could some one please type a working model of loading a bitmap , if you have artbitmap please could you use that please start from the little source i gave above. I tried everthing and no mater what i do nothing on the screen! I also tried FastBmp to draw the pic after the OpenBmpDb(); function and still nothing! Iam new to the c# launage so thats probley why<img src=icon_smile.gif border=0 align=middle>

Email: palm_3333@yahoo.com
Thanks!!!!!!<b></b>

PostPosted: Tue Jun 18, 2002 7:26 pm
by awschwab
You may have had a problem with ArtBMP, but you definitely need to show the bitmap using FastBMP. This works fine with a bitmap made with ArtBMP. Use the name you gave artBmp when you open, or else a new empty bitmap file will be created.

In artBMP, you give it the filename when you create the BMP host. Then you insert the bitmap into the host file. You need to make sure to set your bitdepth (using SetDepth) to match the bit depth of your bitmap, unless you are using the default bitdepth, as I do below.

//showBMP.pc
library "PToolboxLib"
main()
{
graph_on();
OpenBmpDb("spaceBMP");
FastBmp(20, 20, 0);
wait();
graph_off();
}

PostPosted: Sat Jun 22, 2002 7:05 pm
by jonfeero_13
Sorry i forgot my password for my other user name! Iam still haveing trouble whith bit maps! I need some kind of demo the one above dossent work no matter what i try, i need some help big time. Please read above to see my problem and yes sorry i forgot to mention i used FastBmp(); ! Please i need a good working sample of a bitmap done in art bitmap starting from the source above, useing the FastBmp(); and OpenBmpDb(); !
Thanks so much<img src=icon_smile_big.gif border=0 align=middle>

Jonathan.Feero

PostPosted: Sat Jun 22, 2002 9:18 pm
by jstadolnik
Well, the example that awschwab provided is a good one which does work. If it doesn't for you, there are two possilities:

1) Check the return value of OpenBmpDb(), if it's zero, your database could not be found, meaning that "spaceBMP" is not really the name of your bitmap database.

2) The other possibility is that the color depth (bits per pixel) of your bitmap is not the same as the current screen depth. Call SetDepth() with the appropriate color depth before calling graph_on().

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm