Class: GOffice::Image
- Inherits:
-
Object
- Object
- GOffice::Image
- Defined in:
- (unknown)
Class Method Summary collapse
-
.format_to_mime(format) ⇒ String
Corresponding mime type.
-
.formats_with_pixbuf_saver ⇒ GLib::SList<GOffice::ImageFormat>
from a pixbuf.
- .get_default_dpi(dpi_x, dpi_y) ⇒ nil
-
.get_format_from_name(name) ⇒ GOffice::ImageFormat
Corresponding GOImage::Format.
-
.get_format_info(format) ⇒ GOffice::ImageFormatInfo
Retrieves information associated to format.
- .set_default_dpi(dpi_x, dpi_y) ⇒ nil
- .type_for_format(format) ⇒ GLib::Type
Instance Method Summary collapse
- #differ(second) ⇒ Boolean
- #draw(cr) ⇒ nil
- #get_data(length) ⇒ Integer
-
#get_scaled_pixbuf(width, height) ⇒ GdkPixbuf::Pixbuf
Builds a scaled pixbuf from the image and returns it.
-
#height ⇒ Integer
Height.
- #height=(height) ⇒ Integer
- #info ⇒ GOffice::ImageFormatInfo
-
#initialize(doc, cc, image) ⇒ Gtk::Widget
constructor
And shows new image selector.
- #load_attrs(xin, attrs) ⇒ nil
- #load_data(xin) ⇒ nil
- #name ⇒ String
- #name=(name) ⇒ nil
-
#pixbuf ⇒ GdkPixbuf::Pixbuf
Builds a pixbuf from the image if not already done and returns it, adding a reference.
- #save(output) ⇒ nil
-
#thumbnail ⇒ GdkPixbuf::Pixbuf
Generates a thumbnail for image if not already done and returns it, adding a reference.
-
#width ⇒ Integer
Width.
- #width=(width) ⇒ Integer
Constructor Details
#initialize(doc, cc, image) ⇒ Gtk::Widget
Returns and shows new image selector.
Class Method Details
.format_to_mime(format) ⇒ String
Returns corresponding mime type.
.formats_with_pixbuf_saver ⇒ GLib::SList<GOffice::ImageFormat>
from a pixbuf.
.get_default_dpi(dpi_x, dpi_y) ⇒ nil
.get_format_from_name(name) ⇒ GOffice::ImageFormat
Returns corresponding GOImage::Format.
.get_format_info(format) ⇒ GOffice::ImageFormatInfo
Retrieves information associated to format.
.set_default_dpi(dpi_x, dpi_y) ⇒ nil
.type_for_format(format) ⇒ GLib::Type
Instance Method Details
#differ(second) ⇒ Boolean
#draw(cr) ⇒ nil
#get_data(length) ⇒ Integer
#get_scaled_pixbuf(width, height) ⇒ GdkPixbuf::Pixbuf
Builds a scaled pixbuf from the image and returns it. The caller needs to unref it. The pixbuf is scaled so that its width and height are not larger than, respectively, width and height, and preserving the aspect ratio.
#height ⇒ Integer
Returns height.
#height=(height) ⇒ Integer
#info ⇒ GOffice::ImageFormatInfo
#load_attrs(xin, attrs) ⇒ nil
#load_data(xin) ⇒ nil
#name ⇒ String
#name=(name) ⇒ nil
#pixbuf ⇒ GdkPixbuf::Pixbuf
Builds a pixbuf from the image if not already done and returns it, adding a reference.
#save(output) ⇒ nil
#thumbnail ⇒ GdkPixbuf::Pixbuf
Generates a thumbnail for image if not already done and returns it, adding a reference. The pixbuf is scaled so that its width and height are not larger than 64 pixels, and preserving the aspect ratio.
#width ⇒ Integer
Returns width.