> On Oct 14, 2015, at 1:49 PM, Michael Van Canneyt <mich...@freepascal.org> > wrote: > > Type > TMyImage = Class(TFPCompactImgRGBA8Bit) > Public > property Data : PFPCompactImgRGBA8BitValue read FData; > end; > > > Should do it. Or if you don't need Alpha: > > TMyImage = Class(TFPCompactImgRGB8Bit) > Public > property Data : PFPCompactImgRGB8BitValue read FData; > end; > > You could throw in a property to get a direct pointer
TFPCompactImgRGBA8Bit descends from TFPMemoryImage I assume? I need to draw text as textures also and I found an example at http://wiki.freepascal.org/fcl-image#Drawing_text which uses TFPMemoryImage. Thanks for the example, I’ll give this a try. Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal