[ruby-gnome2-doc-cvs] [Hiki] update - RSVG::Handle

アーカイブの一覧に戻る

ruby-****@sourc***** ruby-****@sourc*****
2005年 6月 11日 (土) 00:46:04 JST


-------------------------
REMOTE_ADDR = 219.53.36.42
REMOTE_HOST = 
REMOTE_USER = ruby-gnome2-hiki        URL = http://ruby-gnome2.sourceforge.jp/cgi-bin/hiki/hiki.cgi?RSVG%3A%3AHandle
-------------------------
@@ -48,6 +48,79 @@
      
      * Returns: the pixbuf loaded by handle, or (({nil})).
 
+--- pixbuf_from_file(file_name)
+
+     Loads a new Gdk::Pixbuf from (({file_name})) and
+     returns it. If an error occurred, raises an exception.
+     (({self})) is closed by this call.
+     
+     * file_name: A file name
+     * Returns: A newly allocated Gdk::Pixbuf, or raises an
+       exception.
+
+--- pixbuf_from_file_at_max_size(file_name, max_width, max_height)
+
+     Loads a new Gdk::Pixbuf from (({file_name})) and
+     returns it. This pixbuf is uniformly scaled so that the
+     it fits into a rectangle of size (({max_width})) *
+     (({max_height})). If an error occurred, raises an exception.
+     (({self})) is closed by this call.
+
+     * file_name: A file name
+     * max_width: The requested max width
+     * max_height: The requested max height
+     * Returns: A newly allocated Gdk::Pixbuf, or raises an
+       exception.
+
+--- pixbuf_from_file_at_size(file_name, width, height)
+
+     Loads a new Gdk::Pixbuf from (({file_name})) and
+     returns it. This pixbuf is scaled from the size
+     indicated to the new size indicated by (({width})) and
+     (({height})). If either of these are -1, then the
+     default size of the image being loaded is used. If an
+     error occurred, raises an exception.
+     (({self})) is closed by this call.
+
+     * file_name: A file name
+     * width: The new width, or -1
+     * height: The new height, or -1
+     * Returns: A newly allocated Gdk::Pixbuf, or raises an
+       exception.
+     
+--- pixbuf_from_file_at_zoom(file_name, x_zoom, y_zoom)
+
+     Loads a new Gdk::Pixbuf from (({file_name})) and
+     returns it. This pixbuf is scaled from the size
+     indicated by the file by a factor of (({x_zoom})) and
+     (({y_zoom})). If an error occurred, raises an exception.
+     (({self})) is closed by this call.
+
+     * file_name: A file name
+     * x_zoom: The horizontal zoom factor
+     * y_zoom: The vertical zoom factor
+     * Returns: A newly allocated Gdk::Pixbuf, or raises an
+       exception.
+
+--- pixbuf_from_file_at_zoom_with_max(file_name, x_zoom, y_zoom, max_width, max_height)
+
+     Loads a new Gdk::Pixbuf from (({file_name})) and
+     returns it. This pixbuf is scaled from the size
+     indicated by the file by a factor of (({x_zoom})) and
+     (({y_zoom})). If the resulting pixbuf would be larger
+     than (({max_width}))/(({max_height})) it is uniformly
+     scaled down to fit in that rectangle. If an error
+     occurred, raises an exception.
+     (({self})) is closed by this call.
+
+     * file_name: A file name
+     * x_zoom: The horizontal zoom factor
+     * y_zoom: The vertical zoom factor
+     * max_width: The requested max width
+     * max_height: The requested max height
+     * Returns: A newly allocated Gdk::Pixbuf, or raises an
+       exception.
+
 --- set_dpi_x_y(dpi_x, dpi_y)
 
      Sets the DPI for the outgoing pixbuf. Common values are





ruby-gnome2-cvs メーリングリストの案内
アーカイブの一覧に戻る