> On Oct 11, 2015, at 1:53 PM, Michael Van Canneyt <mich...@freepascal.org> 
> wrote:
> 
> You can use the fpimage and fpreadpng units. Check the packages/fcl-image 
> sources. There is a small demo program that shows how to do it.

I see you can load an image as TFPCustomImage with TFPCustomImageReader then 
there is a canvas class (TFPCustomCanvas) which I assume I could draw the 
TFPCustomImage into and expose the pixels as a pointer to memory which I could 
then use to make the OpenGL texture.

I’m not able to see the references for TFPCustomCanvas in particular so I’m not 
sure how this would work. There is the guide I found but is there any more 
complete examples I could look at? Too much is missing to understand exactly 
how all these classes work together. 

http://wiki.freepascal.org/fcl-image

Thanks.


Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to