[fpc-pascal] fpimage BMP and X11 implementation
Graeme Geldenhuys
graemeg.lists at gmail.com
Tue Jul 3 11:17:12 CEST 2007
On 03/07/07, Michael Van Canneyt <michael.vancanneyt at wisa.be> wrote:
> Create a descendent of TFPCustomImage, say TFPGUIImage. It has an internal
> TXImage field. When the dimensions are set of the image (in SetSize),
> you allocate the TXImage with the correct dimensions: So I think the best is
> to override setsize, and create the TXImage there. Override destroy to free
> The TXImage. Then you override SetInternalColor, GetInternalColor, and
> SetInternalPixel and GetInternalPixel so they work as expected: they'll
> probably simply access the TXImage instance methods, and convert the internal
> format of TXImage to TFPColors.
>
> I hope this makes sense. If not, shoot :-)
Brilliant. It makes more sense now. Thanks again for you time... :)
Graeme.
More information about the fpc-pascal
mailing list