Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-06

bmp setpixelformat not working in linux

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juan Carlos Cañón Mercado

Hi, This is my first time in the mailing list, and also my first time trying to port an application from delphi, so please be kind, I will need a LOT of help...

I need to convert a bmp image to 4 bits pixel format, in windows / delphi I just use :

bmp.pixelformat :=pf4bit;

but in linux / lazarus It just appears to delete the image. Tracing the program step by step I can see in the file custombitmap.inc :

procedure TCustomBitmap.SetPixelFormat(AValue: TPixelFormat);
begin
  if AValue = FPixelFormat then Exit;
  {$IFDEF VerboseLCLTodos}{$note todo copy image into new format }{$ENDIF}
  FreeImage;
  FPixelFormat := AValue;
end;

So apparently it is not implemented yet. By any chance anyone know how to do this?

Thanks in advance,

Juan Carlos
Fedora 17 64 bits
Lazarus IDE 0.9.30.4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120604/b2f97ff3/attachment.html>

Reply by email