Recent

Author Topic: Problems with RLE-8 encoded Bitmaps  (Read 7396 times)

Antrepolit

  • New member
  • *
  • Posts: 7
    • http://www.c-gen.net.tc
Problems with RLE-8 encoded Bitmaps
« on: September 29, 2006, 07:11:16 am »
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  :D , because I now have to convert
200 RLE-8 bitmaps  :cry:

Antrepolit

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1890
RE: Problems with RLE-8 encoded Bitmaps
« Reply #1 on: September 29, 2006, 10:15:22 am »
I don't know if Lazarus can't but FPImage should be able to read them. See fpreadbmp.pp.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2496
RE: Problems with RLE-8 encoded Bitmaps
« Reply #2 on: September 29, 2006, 11:33:58 am »
AFAIK laz is using fpimage
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Antrepolit

  • New member
  • *
  • Posts: 7
    • http://www.c-gen.net.tc
Problems with RLE-8 encoded Bitmaps
« Reply #3 on: September 29, 2006, 02:19:28 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Problems with RLE-8 encoded Bitmaps
« Reply #4 on: September 29, 2006, 03:14:26 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Problems with RLE-8 encoded Bitmaps
« Reply #5 on: September 29, 2006, 03:24:01 pm »
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

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1890
Problems with RLE-8 encoded Bitmaps
« Reply #6 on: September 29, 2006, 07:28:14 pm »
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.