Recent

Author Topic: LazIntFImage  (Read 2708 times)

hvh

  • New Member
  • *
  • Posts: 20
LazIntFImage
« on: May 13, 2017, 10:58:12 pm »
Making graphics faster I try to work with LazIntFImage.
But I can'd give  the pixels each desired color
I did it this way   t := b.CreateIntfImage;
t.Color[Y,X] := colRed;
 this works but how to get each desired color;
With Bitmap I fill in yust a number;



wp

  • Hero Member
  • *****
  • Posts: 11858
Re: LazIntFImage
« Reply #1 on: May 14, 2017, 12:09:58 am »
I am not sure what your question is. But I think you are asking how to apply any TColor to LazIntfImage which only knows TFPColor? For this purpose, unit graphics provides the conversion function
Code: Pascal  [Select][+][-]
  1. function TColorToFPColor(AColor: TColor): FPColor;

hvh

  • New Member
  • *
  • Posts: 20
Re: LazIntFImage
« Reply #2 on: May 20, 2017, 09:56:06 pm »
Thanks!
That is exactly the function I need.

 

TinyPortal © 2005-2018