> >
> >     What FLTK functions are you using to create the image in memory?
> >     I can only think of 'fl_read_image()'
>
> This is exactly what I am doing,
[..]
> Any suggestions?

Perhaps a dumb question, but are you doing the memory management
implied by the description? I.e., either managing your own storage
if you provide it, or deleting the allocated memory (using delete[],
not delete) if you don't.

uchar *fl_read_image(uchar *p, int X, int Y, int W, int H, int alpha = 0);

"..The p argument points to a buffer that can hold the image .. If NULL,
fl_read_image() will create an array of the proper size which can be
freed using delete[]..."

Without some compilable code, I don't know what else to suggest.

HTH.


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to