On 03/07/07, Michael Van Canneyt <[EMAIL PROTECTED]> 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.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal