Status: New Owner: ---- Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any
New issue 29 by [email protected]: Draw then DrawAlpha with imlib component produces error http://code.google.com/p/gambas/issues/detail?id=29 This code (project attached): Dim image1 As Image = New Image(128, 128, 0, 0) Dim image2 As Image = New Image(128, 128, 0, 0) Dim image3 As Image = New Image(128, 128, 0, 0) image1.Draw(image2, 0, 0) image1.DrawAlpha(image3, 0, 0) produces the following runtime error: "The source image and the destination image must have the same format" The error does not occur when the order of the two draw statements is reversed. The problem still occurs when the images are loaded from file rather than explicitly created. Checking the properties of the two images shows identical results as far as I can tell. Here's where things get really strange. If I open the property window for image1 (double-click the variable name) and step-execute (F8) the line "image1.Draw(image2, 0, 0)" it raises signal 11. If I step-execute up to the last line, open the property window for image1, then step-execute the last line the DrawAlpha statement actually works...no error message at all. It's almost like just bringing up the property window modifies image1 such that DrawAlpha under imlib is made happy and doesn't throw the error. Version: gb3/TRUNK Operating system: Ubuntu 10.10 ia64 GUI component: GTK+ Desktop used: Gnome Attachments: gb3_test.tar.bz2 5.6 KB ------------------------------------------------------------------------------ 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
