Problems with RLE-8 encoded Bitmaps lazarus / 39-Graphics ---------------------------------------------------------------------- Antrepolit · 2006-09-29 05:11 Good morning, it's me again. Yesterday I got a problem until loading "some" bitmaps. Lazarus showed me the message "RLE-8 encoded bitmaps are not supported". Does anyone know if the RLE-8 compression be supported in future? It would make me very happy   , because I now have to convert 200 RLE-8 bitmaps  :cry: Antrepolit ---------------------------------------------------------------------- theo · 2006-09-29 08:15 I don't know if Lazarus can't but FPImage should be able to read them. See fpreadbmp.pp. ---------------------------------------------------------------------- Marc · 2006-09-29 09:33 AFAIK laz is using fpimage ---------------------------------------------------------------------- Antrepolit · 2006-09-29 12:19 Lazarus can't decode it. Do you think, I should convert all bitmaps? The problem on it is, that these bitmaps are in a Win32 - resource file. It means I have to export them, convert them and at least to to create a new Win32 - resource file. Oh... ---------------------------------------------------------------------- Vincent Snijders · 2006-09-29 13:14 Marc, I think the problem is in TLazReaderBMP.InternalReadBody in the IntfGraphics unit. I don't know what it should do to support RLE encoded bitmaps. ---------------------------------------------------------------------- felipemdc · 2006-09-29 13:24 Ummm, maybe you could create a script that call ImageMagick to automate this task. www.imagemagick.org/ Or a pascal software that calls ImageMagick libraries. The resource file shouldn't be hard to recreate if you make a .rc file for him, and compile that RC file using Windres GNU Tool that comes with lazarus ---------------------------------------------------------------------- theo · 2006-09-29 17:28 Umm, but I'm pretty sure fpreadbmp can read them. It's stated:  - Support for RLE4 and RLE8 decoding So why not read them the FPImage way? Afaik you can transform these to a Lazarus displayable format. If not, you could at least save them uncompressed to stream/file and load from there instead of using ImageMagick.