![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
when I try to load an 8-bit graphic format (gif or bmp), I get the attached error message (PC). This happens only, when I want to draw with drawer.New2 (ImageList1.Item (0), B4PObject (5)) on this image. No problems with 24-bit formats.
__________________
Thanks for all wolfgang ___________________ Desktop: Dual Core 3.0 GHz, XP SP3 Device: IPAQ 3970 WM 2003, Asus 632N WM5, HTC 3650 Cruise GPS: Clip-on Bluetooth, Navman 3000 |
|
|||
|
Hi Erel,
here it is. It's 8-bit bmp with 256 colors.
__________________
Thanks for all wolfgang ___________________ Desktop: Dual Core 3.0 GHz, XP SP3 Device: IPAQ 3970 WM 2003, Asus 632N WM5, HTC 3650 Cruise GPS: Clip-on Bluetooth, Navman 3000 |
|
|||
|
That's exactly what the error message says. And it's the same with a gif file.
__________________
Thanks for all wolfgang ___________________ Desktop: Dual Core 3.0 GHz, XP SP3 Device: IPAQ 3970 WM 2003, Asus 632N WM5, HTC 3650 Cruise GPS: Clip-on Bluetooth, Navman 3000 |
|
||||
|
Hi wolfgang
How do you load your image ? In my program to display maps I load the image files in an ImageList object, and I had no problem loading your image. You can look at it in: Display maps Best regards Klaus Switzerland |
|
|||
|
Hi,
thank you all. The good news: This happens only on desktop. On PPC is no error. The problem is not, that I can’t do this.The problem was that I want to save memory on PPC. But I found, that it doesn’t matter if you load the same file as a bmp (24-bit), jpg or a gif. In comparison to the desktop where the gif files are much smaller in RAM. On my device (ASUS 632N WM5) a 6 MB bmp or the same file as an 800 KB gif takes about 4 MB of memory(?!). But there is still a difference: bmp files can be loaded up to a size of ~ 1700 x 1700 pixels and gif files much bigger e.g. 2400 x 1800 pixels. I didn’t test the maximum. @Klaus wonderful software. But you don’t draw on your maps. Add an object named draw and this line of code: Code:
. . . draw.New2 (ImageList1.Item (Map_I), B4PObject (5))
__________________
Thanks for all wolfgang ___________________ Desktop: Dual Core 3.0 GHz, XP SP3 Device: IPAQ 3970 WM 2003, Asus 632N WM5, HTC 3650 Cruise GPS: Clip-on Bluetooth, Navman 3000 |
|
||||
|
I'm afraid you can't save memory just by loading a different format. Jpg and gif are compressed formats for storing pictures in files. However pictures are always expanded to full bitmaps when loaded into memory no matter what the format of the source file.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Graphic in SQLite Database | Picard | Questions & Help Needed | 1 | 08-23-2008 12:03 PM |
| graphic print on desktop ? | SpaceCruiser | Questions & Help Needed | 4 | 07-06-2008 05:35 PM |