Board index » cppbuilder » How did I get raw data of BITMAP?

How did I get raw data of BITMAP?

I don't know that "How did I get raw data of BITMAP?" . I don't want
header of BITMAP.
I? want to get only raw data. PLease? tell? protocol with me. I'm
beginner with c++builder.
I use BCB3.0
????????????????????????????? PLEASE ANSWER ME
 

Re:How did I get raw data of BITMAP?


Quote
Chim wrote:
> I don't know that "How did I get raw data of BITMAP?" . I don't want
> header of BITMAP.
> I  want to get only raw data. PLease  tell  protocol with me. I'm
> beginner with c++builder.
> I use BCB3.0
>                               PLEASE ANSWER ME

  Well I can't understand you much, but to get raw data (I think you
mean the pixels) I would do this:

Graphics::TBitmap * aBitmap = new Graphics::TBitmap;
aBitmap -> LoadFromFile ( "bitmap.bmp");
// here access aBitmap->Canvas or
// aBitmap->Canvas->Pixels[x][y] to get the bitmap's pixels
delete aBitmap;

I don't need to know the bitmap file format.

Re:How did I get raw data of BITMAP?


Quote
Chim wrote in message <36B199C7.A6222...@kmitl.ac.th>...
>I don't know that "How did I get raw data of BITMAP?" . I don't want
>header of BITMAP.
>I want to get only raw data. PLease tell protocol with me. I'm
>beginner with c++builder.
>I use BCB3.0

Use Scanline in a TBitmap.

Look at the Scanline Tech Note:
www.efg2.com/lab/ImageProcessing/Scanline.htm

efg
_________________________________
efg's Computer Lab:       www.efg2.com/lab
Delphi Books:  www.efg2.com/lab/TechBooks/Delphi.htm

Earl F. Glynn     E-Mail:  EarlGl...@att.net
Overland Park, KS  USA

Re:How did I get raw data of BITMAP?


TBitmap::ScanLine may be faster

Tsvetozar / Fast Fashion <tsveto...@bia-bg.com> wrote in message
news:36B1AC09.F28EEC08@bia-bg.com...

Quote

>Chim wrote:

>> I don't know that "How did I get raw data of BITMAP?" . I don't want
>> header of BITMAP.
>> I  want to get only raw data. PLease  tell  protocol with me. I'm
>> beginner with c++builder.
>> I use BCB3.0
>>                               PLEASE ANSWER ME

>  Well I can't understand you much, but to get raw data (I think you
>mean the pixels) I would do this:

>Graphics::TBitmap * aBitmap = new Graphics::TBitmap;
>aBitmap -> LoadFromFile ( "bitmap.bmp");
>// here access aBitmap->Canvas or
>// aBitmap->Canvas->Pixels[x][y] to get the bitmap's pixels
>delete aBitmap;

>I don't need to know the bitmap file format.

Re:How did I get raw data of BITMAP?


Quote
RedOne wrote:
> TBitmap::ScanLine may be faster

It is MUCH faster (at least in the things I've done with bitmaps).  There's
some sample projects that use scanlines at
http://norfolkgraphics.com/bcb.html

--
Alan McIntyre
a...@norfolkgraphics.com
http://norfolkgraphics.com

Other Threads