Forum > BGRABitmap and LazPaint

Problem with bitmaps in BGRAControls FPC 2.6.0 and Lazarus trunc

(1/2) > >>

Some bitmaps, like some used in imagebuttontest, and glyphs in TBGRAButton used in bgrawin7toolbar are strangely drawed, see image attached.

Lazarus 0.9.31 r FPC 2.6.0 i386-win32-win32/win64
LazPaint trunc. BGRAControls trunc.

The tests are in the bgracontrols package.

It's strange because only some bitmaps has the problem.

Edit: the bitmaps has no problems when loaded in TSpeedButton.

It may be a problem of conversion between TBitmap and TBGRABitmap. I mean that the way the TBitmap data is received and handled may be wrong. For example, if the bitmap is not in 24bit or 32bit format.

So to solve this the only way for now is using directly TBGRABitmap to avoid the conversion.

Edit: I've solved that using XnView, just opened the bitmap with that viewer, then I used 'Image > 32 bit'. lol

Ok  ;)

I'm wondering if the bug would appear with last svn version of BGRABitmap

I don't know.

When I export the bitmap from the object inspector, and then load it again the image is shown wrong, maybe the object inspector bitmap form changes from 32bit to 24bit?


[0] Message Index

[#] Next page

Go to full version