[Gambas-user] Issue 29 in gambas: Draw then DrawAlpha with imlib component produces error
gambas at ...2524...
gambas at ...2524...
Sat Feb 12 18:12:52 CET 2011
Comment #2 on issue 29 by benoit.m... at ...626...: 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.
More information about the User
mailing list