On 2017-01-20 01:50, Ryan Joseph wrote:
> The max color value is 65535. I thought it was 1.0 or 255.
The FPImage implementation supports 16bit color channels (a bit of
future proofing that confuses many). Most programs and images use 8bits
per channel. Each color channel is thus a WORD size, not a
> On Jan 20, 2017, at 7:20 AM, Graeme Geldenhuys
> wrote:
>
> It is slightly confusing. If you are using an Indexed image, then use
> the Pixels[] property. If you are not using an Indexed image, then use
> the Colors[] property.
Thanks guys,
Here’s the new program based on your example but i
> On Jan 20, 2017, at 8:31 AM, Ryan Joseph wrote:
>
> Thanks guys,
>
> Here’s the new program based on your example but it still just outputs a pure
> black image.
never mind! The max color value is 65535. I thought it was 1.0 or 255. Got it
working now. Thanks again.
Regards,
Ryan
On 2017-01-19 14:59, Ryan Joseph wrote:
> Is there anyway to set a pixel using TFPImageCanvas?
It is slightly confusing. If you are using an Indexed image, then use
the Pixels[] property. If you are not using an Indexed image, then use
the Colors[] property.
Attached is an example program that ge
On Thu, Jan 19, 2017 at 3:59 PM, Ryan Joseph wrote:
> I used the image canvas before to draw bitmap fonts so I have this code
> working. Is there anyway to set a pixel using TFPImageCanvas?
Use the Colors property, it is fast:
property Colors [x,y:integer] : TFPColor read GetColor write SetColor
I’d like to draw a bitmap pixel by pixel then save to disk but I can’t understand the docs available online. I know there’s a BGRABitmap class with direct pixel access but I wasn’t able to find the unit in my FPC distribution.I used the image canvas before to draw bitmap fonts so I have this code w