Comment #2 on issue 29 by [email protected]: Draw then DrawAlpha with imlib component produces error http://code.google.com/p/gambas/issues/detail?id=29
The error message is only raised with gb.gtk. Each GUI component defines a default image internal format. "RGBA" for gb.gtk, "BGRA" for gb.qt4, that is used when you create an image. Moreover, each component processing images (gb.image.effect, gb.image.imlib...) uses its own internal format. gb.image.imlib uses "BGRA". So, when you use gb.gtk, you create an "RGBA" image. The Draw method is the gb.image.imlib one, that internally returns a "BGRA" image. Then you call DrawAlpha with a RGBA image, and gets the format mismatch error. Why are you using gb.gtk? As for the crash, you must create another issue for it. ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
