Hello,

gambas3-svn3480
ubuntu 10.04
AMD64

i have the next code for apply colorize on an Image object

=========================================
----------
FMain
----------

Public iColor As Integer

Public Sub btnColorize_Click()

  FColorChooser.ShowModal
  hImage.Colorize(iColor)
  ShowImage()

End

Public Sub ShowImage()

PictureBox1.Picture = hImage.Picture

End


-------------
FColorChooser
-------------

Public Sub ColorChooser1_Change()

FMain.iColor = ColorChooser1.SelectedColor
 
End

=========================================


when i first choose a color and apply colorize is ok
if i choose again a color and apply Colorize on an Image object i get


(Project79:3529): Gdk-CRITICAL **: gdk_colormap_free_colors: assertion
`GDK_IS_COLORMAP (colormap)' failed

(Project79:3529): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed

(Project79:3529): GLib-GObject-CRITICAL **: g_object_unref: assertion
`G_IS_OBJECT (object)' failed

(Project79:3529): Gdk-CRITICAL **: gdk_colormap_free_colors: assertion
`GDK_IS_COLORMAP (colormap)' failed

(Project79:3529): Gdk-WARNING **: Using Cairo rendering requires the
drawable argument to
have a specified colormap. All windows have a colormap,
however, pixmaps only have colormap by default if they
were created with a non-NULL window argument. Otherwise
a colormap must be set on them with gdk_drawable_set_colormap

http://www.mediafire.com/?dq05bd3q617scj6


-- 
Regards,
Demosthenes Koptsis.


------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to