rsvg.global

Global functions for rsvg2 library

Functions 10

fnvoid cleanup()This function does nothing.
fnvoid init_()This function does nothing.
fngdkpixbuf.pixbuf.Pixbuf pixbufFromFile(string filename)Loads a new [gdkpixbuf.pixbuf.Pixbuf] from filename and returns it. The caller must assume the reference to the reurned pixbuf. If an error occurred, error is set and `NULL` is returned.
fngdkpixbuf.pixbuf.Pixbuf pixbufFromFileAtMaxSize(string filename, int maxWidth, int maxHeight)Loads a new [gdkpixbuf.pixbuf.Pixbuf] from filename and returns it. This pixbuf is uniformly scaled so that the it fits into a rectangle of size `maxwidth * maxheight`. The caller must assume the ...
fngdkpixbuf.pixbuf.Pixbuf pixbufFromFileAtSize(string filename, int width, int height)Loads a new [gdkpixbuf.pixbuf.Pixbuf] from filename and returns it. This pixbuf is scaled from the size indicated to the new size indicated by width and height. If both of these are -1, then the ...
fngdkpixbuf.pixbuf.Pixbuf pixbufFromFileAtZoom(string filename, double xZoom, double yZoom)Loads a new [gdkpixbuf.pixbuf.Pixbuf] from filename and returns it. This pixbuf is scaled from the size indicated by the file by a factor of xzoom and yzoom. The caller must assume the reference ...
fngdkpixbuf.pixbuf.Pixbuf pixbufFromFileAtZoomWithMax(string filename, double xZoom, double yZoom, int maxWidth, int maxHeight)Loads a new [gdkpixbuf.pixbuf.Pixbuf] from filename and returns it. This pixbuf is scaled from the size indicated by the file by a factor of xzoom and yzoom. If the resulting pixbuf would be large...
fnvoid setDefaultDpi(double dpi)Do not use this function. Create an [rsvg.handle.Handle] and call [rsvg.handle.Handle.setDpi] on it instead.
fnvoid setDefaultDpiXY(double dpiX, double dpiY)Do not use this function. Create an [rsvg.handle.Handle] and call [rsvg.handle.Handle.setDpiXY] on it instead.
fnvoid term()This function does nothing.