Board index » delphi » bit bitmaps

bit bitmaps

i want load big black & white bitmaps (9000x9000 pixel ca. 9MB)
the standard loadbitmap function convert it intern in a 256 color bitmap
so i need min. 72MB RAM
i want load this bitmap in a device indepent bitmap an copy a
rect (1000x1000 pixel) in a 256 color bitmap or  paintbox
my ideas failt

can somebody help me

thanks

 

Re:bit bitmaps


Quote
Marko Apfel <map...@techfak.uni-bielefeld.de> wrote:
>i want load big black & white bitmaps (9000x9000 pixel ca. 9MB)
>the standard loadbitmap function convert it intern in a 256 color bitmap
>so i need min. 72MB RAM
>i want load this bitmap in a device indepent bitmap an copy a
>rect (1000x1000 pixel) in a 256 color bitmap or  paintbox
>my ideas failt
>can somebody help me
>thanks

Have you tried to force the Bitmap to monochrome status
before loading the actual bitmap ?
ex :
var bmp : TBitmap ;
bmp := TBitmap.Create ;
  << bmp.monochrome := true ; >>  
bmp.LoadFromFile(mybitmapFilename) ;
...

Other Threads