class Iup::ImageWidget
Parent class of images provides common attributes.
See also: Image, ImageRGB, ImageRGBA, Iup.load_image.
Attributes
The name for referring to image.
Returns the number of bits per pixel.
Returns the number of channels.
Height of the image, in pixels.
“x:y”, coordinates of spot in image used for mouse click. Default is “0:0”.
Size of the image, in pixels, value as “widthxheight”.
Native widget identifier.
Width of the image, in pixels.
Public Instance Methods
Source
# File lib/wrapped/image.rb, line 67 def save(filename, format = 'png') err = IupIm.IupSaveImage @handle, filename, format if err.zero? raise Exception, 'Could not save image as file' end end
Saves image to given filename. Optional format is one of: “BMP”, “JPEG”, “GIF”, “TIFF”, “PNG”, “PNM”, “PCX”, “ICO”, etc.