[fpc-pascal] Drawing bitmap by pixel
Graeme Geldenhuys
mailinglists at geldenhuys.co.uk
Fri Jan 20 01:20:10 CET 2017
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 generates a Minecraft like grass
block (texture) and then outputs it to a PNG file. I hope the example helps.
Regards,
Graeme
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/
My public PGP key: http://tinyurl.com/graeme-pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output-1.png
Type: image/png
Size: 4668 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170120/1c4cbce4/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: project1.lpr
Type: text/typhon-project-source
Size: 1488 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170120/1c4cbce4/attachment.bin>
More information about the fpc-pascal
mailing list