Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 677c1b5134368504c2e447757584d19e > files > 653

ghc-gtk-devel-0.11.2-5.fc14.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--Rendered using the Haskell Html Library v0.2-->
<HTML
><HEAD
><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"
><TITLE
>Graphics.UI.Gtk.Gdk.Pixbuf</TITLE
><LINK HREF="haddock.css" REL="stylesheet" TYPE="text/css"
><SCRIPT SRC="haddock-util.js" TYPE="text/javascript"
></SCRIPT
><SCRIPT TYPE="text/javascript"
>window.onload = function () {setSynopsis("mini_Graphics-UI-Gtk-Gdk-Pixbuf.html")};</SCRIPT
></HEAD
><BODY
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="topbar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><IMG SRC="haskell_icon.gif" WIDTH="16" HEIGHT="16" ALT=" "
></TD
><TD CLASS="title"
>gtk-0.11.2: Binding to the Gtk+ graphical user interface library.</TD
><TD CLASS="topbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html"
>Source code</A
></TD
><TD CLASS="topbut"
><A HREF="index.html"
>Contents</A
></TD
><TD CLASS="topbut"
><A HREF="doc-index.html"
>Index</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="modulebar"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD
><FONT SIZE="6"
>Graphics.UI.Gtk.Gdk.Pixbuf</FONT
></TD
><TD ALIGN="right"
><TABLE CLASS="narrow" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="infohead"
>Portability</TD
><TD CLASS="infoval"
>portable (depends on GHC)</TD
></TR
><TR
><TD CLASS="infohead"
>Stability</TD
><TD CLASS="infoval"
>provisional</TD
></TR
><TR
><TD CLASS="infohead"
>Maintainer</TD
><TD CLASS="infoval"
>gtk2hs-users@lists.sourceforge.net</TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
><B
>Contents</B
></TD
></TR
><TR
><TD
><DL
><DT
><A HREF="#1"
>Class Hierarchy
</A
></DT
><DT
><A HREF="#2"
>Types
</A
></DT
><DT
><A HREF="#3"
>Constructors
</A
></DT
><DT
><A HREF="#4"
>Methods
</A
></DT
></DL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Description</TD
></TR
><TR
><TD CLASS="doc"
><P
><TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
>s are bitmap images in memory.
</P
><UL
><LI
> A Pixbuf is used to represent images. It contains information
 about the image's pixel data, its color space, bits per sample, width
 and height, and the rowstride or number of bytes between rows.
</LI
><LI
> This module contains functions to scale and crop
 <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
>s and to scale and crop a <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
> and
 compose the result with an existing image.
</LI
><LI
> <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
>s can be displayed on screen by either creating an <TT
><A HREF="Graphics-UI-Gtk-Display-Image.html#t%3AImage"
>Image</A
></TT
> that
 from the <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
> or by rendering (part of) the <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
> into a
 vanilla widget like <TT
><A HREF="Graphics-UI-Gtk-Gdk-DrawWindow.html#t%3ADrawWindow"
>DrawWindow</A
></TT
> using
 Graphics.UI.Gtk.Gdk.Drawable.drawPixbuf.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
>Synopsis</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3APixbuf"
>Pixbuf</A
> </TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>class</SPAN
> <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass"
>GObjectClass</A
> o =&gt; <A HREF="#t%3APixbufClass"
>PixbufClass</A
> o </TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AcastToPixbuf"
>castToPixbuf</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass"
>GObjectClass</A
> obj =&gt; obj -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AgTypePixbuf"
>gTypePixbuf</A
> :: <A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AGType"
>GType</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3AtoPixbuf"
>toPixbuf</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufClass"
>PixbufClass</A
> o =&gt; o -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3APixbufError"
>PixbufError</A
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
>= <A HREF="#v%3APixbufErrorCorruptImage"
>PixbufErrorCorruptImage</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3APixbufErrorInsufficientMemory"
>PixbufErrorInsufficientMemory</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3APixbufErrorBadOption"
>PixbufErrorBadOption</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3APixbufErrorUnknownType"
>PixbufErrorUnknownType</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3APixbufErrorUnsupportedOperation"
>PixbufErrorUnsupportedOperation</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3APixbufErrorFailed"
>PixbufErrorFailed</A
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3AColorspace"
>Colorspace</A
>  = <A HREF="#v%3AColorspaceRgb"
>ColorspaceRgb</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufNew"
>pixbufNew</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AColorspace"
>Colorspace</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufNewFromFile"
>pixbufNewFromFile</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AFilePath"
>FilePath</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufNewFromFileAtSize"
>pixbufNewFromFileAtSize</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufNewFromFileAtScale"
>pixbufNewFromFileAtScale</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufNewFromInline"
>pixbufNewFromInline</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Foreign-Ptr.html#t%3APtr"
>Ptr</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AInlineImage"
>InlineImage</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3AInlineImage"
>InlineImage</A
> </TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufNewSubpixbuf"
>pixbufNewSubpixbuf</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufNewFromXPMData"
>pixbufNewFromXPMData</A
> :: [<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
>] -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufGetColorSpace"
>pixbufGetColorSpace</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AColorspace"
>Colorspace</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufGetNChannels"
>pixbufGetNChannels</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufGetHasAlpha"
>pixbufGetHasAlpha</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufGetBitsPerSample"
>pixbufGetBitsPerSample</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Ix.html#t%3AIx"
>Ix</A
> i =&gt; <A HREF="#t%3APixbufData"
>PixbufData</A
> i e</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufGetPixels"
>pixbufGetPixels</A
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Foreign-Storable.html#t%3AStorable"
>Storable</A
> e =&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufData"
>PixbufData</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> e)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufGetWidth"
>pixbufGetWidth</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufGetHeight"
>pixbufGetHeight</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufGetRowstride"
>pixbufGetRowstride</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufGetOption"
>pixbufGetOption</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
>)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>type</SPAN
> <A HREF="#t%3AImageFormat"
>ImageFormat</A
> = <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufGetFormats"
>pixbufGetFormats</A
> :: [<A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AImageFormat"
>ImageFormat</A
>]</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufSave"
>pixbufSave</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AFilePath"
>FilePath</A
> -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AImageFormat"
>ImageFormat</A
> -&gt; [(<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
>, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
>)] -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufCopy"
>pixbufCopy</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3AInterpType"
>InterpType</A
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
>= <A HREF="#v%3AInterpNearest"
>InterpNearest</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3AInterpTiles"
>InterpTiles</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3AInterpBilinear"
>InterpBilinear</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3AInterpHyper"
>InterpHyper</A
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufScaleSimple"
>pixbufScaleSimple</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AInterpType"
>InterpType</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufScale"
>pixbufScale</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
> -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AInterpType"
>InterpType</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufComposite"
>pixbufComposite</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
> -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AInterpType"
>InterpType</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufFlipHorizontally"
>pixbufFlipHorizontally</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufFlipHorazontally"
>pixbufFlipHorazontally</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufFlipVertically"
>pixbufFlipVertically</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufRotateSimple"
>pixbufRotateSimple</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufRotation"
>PixbufRotation</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
><SPAN CLASS="keyword"
>data</SPAN
>  <A HREF="#t%3APixbufRotation"
>PixbufRotation</A
>  </TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="decl"
>= <A HREF="#v%3APixbufRotateNone"
>PixbufRotateNone</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3APixbufRotateCounterclockwise"
>PixbufRotateCounterclockwise</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3APixbufRotateUpsidedown"
>PixbufRotateUpsidedown</A
></TD
></TR
><TR
><TD CLASS="decl"
>| <A HREF="#v%3APixbufRotateClockwise"
>PixbufRotateClockwise</A
></TD
></TR
></TABLE
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufAddAlpha"
>pixbufAddAlpha</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
>, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
>, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
>) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufCopyArea"
>pixbufCopyArea</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufFill"
>pixbufFill</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufGetFromDrawable"
>pixbufGetFromDrawable</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Drawable.html#t%3ADrawableClass"
>DrawableClass</A
> d =&gt; d -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Events.html#t%3ARectangle"
>Rectangle</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
>)</TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufRenderThresholdAlpha"
>pixbufRenderThresholdAlpha</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixmap.html#t%3ABitmap"
>Bitmap</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
></TR
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="#v%3ApixbufRenderPixmapAndMaskForColormap"
>pixbufRenderPixmapAndMaskForColormap</A
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; Colormap -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="Graphics-UI-Gtk-Gdk-Pixmap.html#t%3APixmap"
>Pixmap</A
>, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixmap.html#t%3ABitmap"
>Bitmap</A
>)</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="1"
><A NAME="1"
>Class Hierarchy
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="doc"
><PRE
>
 | <TT
><A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObject"
>GObject</A
></TT
>
 | +----Pixbuf
</PRE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="2"
><A NAME="2"
>Types
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:Pixbuf"
><A NAME="t%3APixbuf"
></A
></A
><B
>Pixbuf</B
>  </TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Types.html#Pixbuf"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Pixbuf')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:Pixbuf" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Eq.html#t%3AEq"
>Eq</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Ord.html#t%3AOrd"
>Ord</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass"
>GObjectClass</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufClass"
>PixbufClass</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>class</SPAN
> <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass"
>GObjectClass</A
> o =&gt; <A NAME="t:PixbufClass"
><A NAME="t%3APixbufClass"
></A
></A
><B
>PixbufClass</B
> o </TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Types.html#PixbufClass"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="s8"
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:PixbufClass')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:PixbufClass" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufClass"
>PixbufClass</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:castToPixbuf"
><A NAME="v%3AcastToPixbuf"
></A
></A
><B
>castToPixbuf</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GObject.html#t%3AGObjectClass"
>GObjectClass</A
> obj =&gt; obj -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Types.html#castToPixbuf"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:gTypePixbuf"
><A NAME="v%3AgTypePixbuf"
></A
></A
><B
>gTypePixbuf</B
> :: <A HREF="Graphics-UI-Gtk-Abstract-Widget.html#t%3AGType"
>GType</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Types.html#gTypePixbuf"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:toPixbuf"
><A NAME="v%3AtoPixbuf"
></A
></A
><B
>toPixbuf</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufClass"
>PixbufClass</A
> o =&gt; o -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Types.html#toPixbuf"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:PixbufError"
><A NAME="t%3APixbufError"
></A
></A
><B
>PixbufError</B
>  </TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#PixbufError"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
>Error codes for loading image files.
</TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:PixbufErrorCorruptImage"
><A NAME="v%3APixbufErrorCorruptImage"
></A
></A
><B
>PixbufErrorCorruptImage</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:PixbufErrorInsufficientMemory"
><A NAME="v%3APixbufErrorInsufficientMemory"
></A
></A
><B
>PixbufErrorInsufficientMemory</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:PixbufErrorBadOption"
><A NAME="v%3APixbufErrorBadOption"
></A
></A
><B
>PixbufErrorBadOption</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:PixbufErrorUnknownType"
><A NAME="v%3APixbufErrorUnknownType"
></A
></A
><B
>PixbufErrorUnknownType</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:PixbufErrorUnsupportedOperation"
><A NAME="v%3APixbufErrorUnsupportedOperation"
></A
></A
><B
>PixbufErrorUnsupportedOperation</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:PixbufErrorFailed"
><A NAME="v%3APixbufErrorFailed"
></A
></A
><B
>PixbufErrorFailed</B
></TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:PixbufError')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:PixbufError" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AEnum"
>Enum</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufError"
>PixbufError</A
></TD
></TR
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/glib-0.11.2/System-Glib-GError.html#t%3AGErrorClass"
>GErrorClass</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufError"
>PixbufError</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:Colorspace"
><A NAME="t%3AColorspace"
></A
></A
><B
>Colorspace</B
>  </TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#Colorspace"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
><P
>Enumerate all supported color spaces.
</P
><UL
><LI
> Only RGB is supported right now.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:ColorspaceRgb"
><A NAME="v%3AColorspaceRgb"
></A
></A
><B
>ColorspaceRgb</B
></TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:Colorspace')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:Colorspace" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AEnum"
>Enum</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AColorspace"
>Colorspace</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="3"
><A NAME="3"
>Constructors
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufNew"
><A NAME="v%3ApixbufNew"
></A
></A
><B
>pixbufNew</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AColorspace"
>Colorspace</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufNew"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Create a new image in memory.
</P
><UL
><LI
> Creates a new pixbuf structure and allocates a buffer for
 it. Note that the buffer is not cleared initially.
</LI
><LI
> The boolean flag is true if the pixbuf should have an alpha
 (transparency) channel. The next integer denotes the bits per
 color sample, e.g. 8 bits per color for 2^24 colors. The last
 two integers denote the width and height, respectively.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufNewFromFile"
><A NAME="v%3ApixbufNewFromFile"
></A
></A
><B
>pixbufNewFromFile</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AFilePath"
>FilePath</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufNewFromFile"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Load an image synchonously.
</P
><UL
><LI
> Use this function to load only small images as this call will block.
</LI
><LI
> If an error occurs, the function will throw an exception that can
 be caught using e.g. System.Glib.GError.catchGErrorJust and one of the
 error codes in <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufError"
>PixbufError</A
></TT
>.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufNewFromFileAtSize"
><A NAME="v%3ApixbufNewFromFileAtSize"
></A
></A
><B
>pixbufNewFromFileAtSize</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufNewFromFileAtSize"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Creates a new pixbuf by loading an image from a file. The file format is
 detected automatically. The image will be scaled to fit in the requested
 size, preserving the image's aspect ratio.
</P
><UL
><LI
> If an error occurs, the function will throw an exception that can
 be caught using e.g. System.Glib.GError.catchGErrorJust and one of the
 error codes in <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufError"
>PixbufError</A
></TT
>.
</LI
><LI
> Available since Gtk+ version 2.4
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufNewFromFileAtScale"
><A NAME="v%3ApixbufNewFromFileAtScale"
></A
></A
><B
>pixbufNewFromFileAtScale</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufNewFromFileAtScale"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
></TD
><TD CLASS="rdoc"
>the name of the file
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>target width
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>target height
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
></TD
><TD CLASS="rdoc"
>whether to preserve the aspect ratio
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
><P
>Creates a new pixbuf by loading an image from a file. The file format is
 detected automatically. The image will be scaled to fit in the requested
 size, optionally preserving the image's aspect ratio.
</P
><P
>When preserving the aspect ratio, a width of -1 will cause the image to be
 scaled to the exact given height, and a height of -1 will cause the image to
 be scaled to the exact given width. When not preserving aspect ratio, a width
 or height of -1 means to not scale the image at all in that dimension.
 Negative values for width and height are allowed since Gtk+ 2.8.
</P
><UL
><LI
> If an error occurs, the function will throw an exception that can
 be caught using e.g. System.Glib.GError.catchGErrorJust and one of the
 error codes in <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufError"
>PixbufError</A
></TT
>.
</LI
><LI
> Available since Gtk+ version 2.6
</LI
></UL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufNewFromInline"
><A NAME="v%3ApixbufNewFromInline"
></A
></A
><B
>pixbufNewFromInline</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Foreign-Ptr.html#t%3APtr"
>Ptr</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AInlineImage"
>InlineImage</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufNewFromInline"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Create a new image from a static pointer.
</P
><UL
><LI
> Like <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3ApixbufNewFromXPMData"
>pixbufNewFromXPMData</A
></TT
>, this function allows to
 include images in the final binary program. The method used by this
 function uses a binary representation and therefore needs less space
 in the final executable. Save the image you want to include as
 <TT
>png</TT
> and run:
</LI
></UL
><PRE
> @echo #include &quot;my_image.h&quot; &gt; my_image.c
 gdk-pixbuf-csource --raw --extern --name=my_image myimage.png &gt;&gt; my_image.c
</PRE
><P
>on it. Write a header file <TT
>my_image.h</TT
> containing:
</P
><PRE
> #include &lt;gdk/gdk.h&gt;
 extern guint8 my_image[];
</PRE
><P
>and save it in the current directory.
 The created file can be compiled with:
</P
><PRE
> cc -c my_image.c `pkg-config --cflags gdk-2.0`
</PRE
><P
>into an object file which must be linked into your Haskell program by
 specifying <TT
>my_image.o</TT
> and <TT
>&quot;-#include my_image.h&quot;</TT
> on
 the command line of GHC.
 Within you application you delcare a pointer to this image:
</P
><PRE
> foreign label &quot;my_image&quot; myImage :: Ptr InlineImage
</PRE
><P
>Calling <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3ApixbufNewFromInline"
>pixbufNewFromInline</A
></TT
> with this pointer will
 return the image in the object file. Creating the C file with
 the <TT
>--raw</TT
> flag will result in a non-compressed image in the
 object file. The advantage is that the picture will not be
 copied when this function is called.
</P
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:InlineImage"
><A NAME="t%3AInlineImage"
></A
></A
><B
>InlineImage</B
>  </TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#InlineImage"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
><P
>A dymmy type for inline picture data.
</P
><UL
><LI
> This dummy type is used to declare pointers to image data
 that is embedded in the executable. See
 <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3ApixbufNewFromInline"
>pixbufNewFromInline</A
></TT
> for an example.
</LI
></UL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufNewSubpixbuf"
><A NAME="v%3ApixbufNewSubpixbuf"
></A
></A
><B
>pixbufNewSubpixbuf</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufNewSubpixbuf"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Create a restricted view of an image.
</P
><UL
><LI
> This function returns a <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
> object which shares
 the image of the original one but only shows a part of it.
 Modifying either buffer will affect the other.
</LI
><LI
> This function throw an exception if the requested bounds are invalid.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufNewFromXPMData"
><A NAME="v%3ApixbufNewFromXPMData"
></A
></A
><B
>pixbufNewFromXPMData</B
> :: [<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
>] -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufNewFromXPMData"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Create a new image from a String.
</P
><UL
><LI
> Creates a new pixbuf from a string description.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="section1"
><A NAME="4"
><A NAME="4"
>Methods
</A
></A
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufGetColorSpace"
><A NAME="v%3ApixbufGetColorSpace"
></A
></A
><B
>pixbufGetColorSpace</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AColorspace"
>Colorspace</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufGetColorSpace"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>Queries the color space of a pixbuf.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufGetNChannels"
><A NAME="v%3ApixbufGetNChannels"
></A
></A
><B
>pixbufGetNChannels</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufGetNChannels"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Queries the number of colors for each pixel.
</P
><UL
><LI
> This function returns 3 for an RGB image without alpha (transparency)
 channel, 4 for an RGB image with alpha channel.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufGetHasAlpha"
><A NAME="v%3ApixbufGetHasAlpha"
></A
></A
><B
>pixbufGetHasAlpha</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Bool.html#t%3ABool"
>Bool</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufGetHasAlpha"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Query if the image has an alpha channel.
</P
><UL
><LI
> The alpha channel determines the opaqueness of the pixel.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufGetBitsPerSample"
><A NAME="v%3ApixbufGetBitsPerSample"
></A
></A
><B
>pixbufGetBitsPerSample</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufGetBitsPerSample"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Queries the number of bits for each color.
</P
><UL
><LI
> Each pixel is has a number of cannels for each pixel, each channel
 has this many bits.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>data</SPAN
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Ix.html#t%3AIx"
>Ix</A
> i =&gt; <A NAME="t:PixbufData"
><A NAME="t%3APixbufData"
></A
></A
><B
>PixbufData</B
> i e </TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-PixbufData.html#PixbufData"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
><P
>An array that stored the raw pixel data of a <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
>.
</P
><UL
><LI
> See Graphics.UI.Gtk.Gdk.Pixbuf.pixbufGetPixels.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:PixbufData')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:PixbufData" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Foreign-Storable.html#t%3AStorable"
>Storable</A
> e =&gt; <A HREF="/usr/share/doc/ghc/html/libraries/array-0.3.0.1/Data-Array-MArray.html#t%3AMArray"
>MArray</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufData"
>PixbufData</A
> e <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufGetPixels"
><A NAME="v%3ApixbufGetPixels"
></A
></A
><B
>pixbufGetPixels</B
> :: <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Foreign-Storable.html#t%3AStorable"
>Storable</A
> e =&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufData"
>PixbufData</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
> e)</TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufGetPixels"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Retrieve the internal array of raw image data.
</P
><UL
><LI
> Image data in a pixbuf is stored in memory in uncompressed,
 packed format. Rows in the image are stored top to bottom, and in each
 row pixels are stored from left to right. There may be padding at the
 end of a row. The <A HREF="rowstride.html"
>rowstride</A
> value of a pixbuf, as returned by
 <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3ApixbufGetRowstride"
>pixbufGetRowstride</A
></TT
>, indicates the number of bytes between rows.
</LI
><LI
> The returned array is a flat representation of a three dimensional
 array: x-coordiante, y-coordinate and several channels for each color.
 The number of channels is usually 3 for plain RGB data or 4 for
 RGB data with an alpha channel. To read or write a specific pixel
 use the formula: <TT
>p = y * rowstride + x * nChannels</TT
> for the pixel.
 If the array contains bytes (or <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
></TT
>s), <TT
>p+0</TT
> is the red value,
 <TT
>p+1</TT
> green, <TT
>p+2</TT
> blue and <TT
>p+3</TT
> the alpha (transparency) channel
 if present. If the alpha channel is present, the array can accessed
 as an array over <TT
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord32"
>Word32</A
></TT
> to modify a whole pixel at a time. See also
 <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3ApixbufGetBitsPerSample"
>pixbufGetBitsPerSample</A
></TT
> and <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3ApixbufGetNChannels"
>pixbufGetNChannels</A
></TT
>.
</LI
><LI
> Calling this function without explicitly giving it a type will often
 lead to a compiler error since the type parameter <TT
>e</TT
> is underspecified.
 If this happens the function can be explicitly typed:
 <TT
>pbData &lt;- (pixbufGetPixels pb :: IO (PixbufData Int Word8))</TT
>
</LI
><LI
> If modifying an image through Haskell's array interface is not
 fast enough, it is possible to use unsafeRead and
 unsafeWrite which have the same type signatures
 as readArray and writeArray.
 Note that these are internal
 functions that might change with GHC.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufGetWidth"
><A NAME="v%3ApixbufGetWidth"
></A
></A
><B
>pixbufGetWidth</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufGetWidth"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>Queries the width of this image.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufGetHeight"
><A NAME="v%3ApixbufGetHeight"
></A
></A
><B
>pixbufGetHeight</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufGetHeight"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>Queries the height of this image.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufGetRowstride"
><A NAME="v%3ApixbufGetRowstride"
></A
></A
><B
>pixbufGetRowstride</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufGetRowstride"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Queries the rowstride of this image.
</P
><UL
><LI
> Queries the rowstride of a pixbuf, which is the number of bytes between
 rows. Use this value to caculate the offset to a certain row.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufGetOption"
><A NAME="v%3ApixbufGetOption"
></A
></A
><B
>pixbufGetOption</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
>)</TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufGetOption"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Returns an attribut of an image.
</P
><UL
><LI
> Looks up if some information was stored under the <TT
>key</TT
> when
 this image was saved.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>type</SPAN
> <A NAME="t:ImageFormat"
><A NAME="t%3AImageFormat"
></A
></A
><B
>ImageFormat</B
> = <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#ImageFormat"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>A string representing an image file format.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufGetFormats"
><A NAME="v%3ApixbufGetFormats"
></A
></A
><B
>pixbufGetFormats</B
> :: [<A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AImageFormat"
>ImageFormat</A
>]</TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufGetFormats"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufSave"
><A NAME="v%3ApixbufSave"
></A
></A
><B
>pixbufSave</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AFilePath"
>FilePath</A
> -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AImageFormat"
>ImageFormat</A
> -&gt; [(<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
>, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Char.html#t%3AString"
>String</A
>)] -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufSave"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Save an image to disk.
</P
><UL
><LI
> The function takes a list of key - value pairs to specify
 either how an image is saved or to actually save this additional
 data with the image. JPEG images can be saved with a &quot;quality&quot;
 parameter; its value should be in the range [0,100]. Text chunks
 can be attached to PNG images by specifying parameters of the form
 &quot;tEXt::key&quot;, where key is an ASCII string of length 1-79.
 The values are Unicode strings.
</LI
><LI
> If an error occurs, the function will throw an exception that can
 be caught using e.g. System.Glib.GError.catchGErrorJust and one of the
 error codes in <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufError"
>PixbufError</A
></TT
>.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufCopy"
><A NAME="v%3ApixbufCopy"
></A
></A
><B
>pixbufCopy</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufCopy"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>Create a deep copy of an image.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:InterpType"
><A NAME="t%3AInterpType"
></A
></A
><B
>InterpType</B
>  </TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#InterpType"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
><P
>How an image is scaled.
</P
><DL
><DT
><TT
>InterpNearest</TT
></DT
><DD
> Nearest neighbor sampling; this is the
 fastest and lowest quality mode. Quality is normally unacceptable when
 scaling down, but may be OK when scaling up.
</DD
><DT
><TT
>InterpTiles</TT
></DT
><DD
> This is an accurate simulation of the
 PostScript image operator without any interpolation enabled. Each
 pixel is rendered as a tiny parallelogram of solid color, the edges of
 which are implemented with antialiasing. It resembles nearest neighbor
 for enlargement, and bilinear for reduction.
</DD
><DT
><TT
>InterpBilinear</TT
></DT
><DD
> Best quality/speed balance; use this
 mode by default. Bilinear interpolation. For enlargement, it is
 equivalent to point-sampling the ideal bilinear-interpolated
 image. For reduction, it is equivalent to laying down small tiles and
 integrating over the coverage area.
</DD
><DT
><TT
>InterpHyper</TT
></DT
><DD
> This is the slowest and highest quality
 reconstruction function. It is derived from the hyperbolic filters in
 Wolberg's &quot;Digital Image Warping&quot;, and is formally defined as the
 hyperbolic-filter sampling the ideal hyperbolic-filter interpolated
 image (the filter is designed to be idempotent for 1:1 pixel mapping).
</DD
></DL
></TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:InterpNearest"
><A NAME="v%3AInterpNearest"
></A
></A
><B
>InterpNearest</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:InterpTiles"
><A NAME="v%3AInterpTiles"
></A
></A
><B
>InterpTiles</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:InterpBilinear"
><A NAME="v%3AInterpBilinear"
></A
></A
><B
>InterpBilinear</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:InterpHyper"
><A NAME="v%3AInterpHyper"
></A
></A
><B
>InterpHyper</B
></TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:InterpType')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:InterpType" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AEnum"
>Enum</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AInterpType"
>InterpType</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufScaleSimple"
><A NAME="v%3ApixbufScaleSimple"
></A
></A
><B
>pixbufScaleSimple</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufScaleSimple"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="rdoc"
><TT
>src</TT
> - the source image
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
><TT
>width</TT
> - the target width
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
><TT
>height</TT
> the target height
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AInterpType"
>InterpType</A
></TD
><TD CLASS="rdoc"
>interpolation type
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
><P
>Scale an image.
</P
><UL
><LI
> Creates a new <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
> containing a copy of
 <TT
>src</TT
> scaled to the given measures. Leaves <TT
>src</TT
>
 unaffected.
</LI
><LI
> <TT
>interp</TT
> affects the quality and speed of the scaling function.
 <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3AInterpNearest"
>InterpNearest</A
></TT
> is the fastest option but yields very poor quality
 when scaling down. <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3AInterpBilinear"
>InterpBilinear</A
></TT
> is a good trade-off between
 speed and quality and should thus be used as a default.
</LI
></UL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufScale"
><A NAME="v%3ApixbufScale"
></A
></A
><B
>pixbufScale</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufScale"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="rdoc"
><TT
>src</TT
> - the source pixbuf
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="rdoc"
><TT
>dest</TT
> - the pixbuf into which to render the results
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
><TT
>destX</TT
> - the left coordinate for region to render
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
><TT
>destY</TT
> - the top coordinate for region to render
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
><TT
>destWidth</TT
> - the width of the region to render
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
><TT
>destHeight</TT
> - the height of the region to render
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
></TD
><TD CLASS="rdoc"
><TT
>offsetX</TT
> - the offset in the X direction (currently
 rounded to an integer)
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
></TD
><TD CLASS="rdoc"
><TT
>offsetY</TT
> - the offset in the Y direction
 (currently rounded to an integer)
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
></TD
><TD CLASS="rdoc"
><TT
>scaleX</TT
> - the scale factor in the X direction
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
></TD
><TD CLASS="rdoc"
><TT
>scaleY</TT
> - the scale factor in the Y direction
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AInterpType"
>InterpType</A
></TD
><TD CLASS="rdoc"
>the interpolation type for the transformation.
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
><P
>Copy a scaled image part to another image.
</P
><UL
><LI
> This function is the generic version of <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3ApixbufScaleSimple"
>pixbufScaleSimple</A
></TT
>. It scales
 <TT
>src</TT
> by <TT
>scaleX</TT
> and <TT
>scaleY</TT
> and translate the image by <TT
>offsetX</TT
> and
 <TT
>offsetY</TT
>. Whatever is in the intersection with the rectangle <TT
>destX</TT
>,
 <TT
>destY</TT
>, <TT
>destWidth</TT
>, <TT
>destHeight</TT
> will be rendered into <TT
>dest</TT
>.
</LI
><LI
> The rectangle in the destination is simply overwritten. Use
 <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3ApixbufComposite"
>pixbufComposite</A
></TT
> if you need to blend the source image onto the
 destination.
</LI
></UL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufComposite"
><A NAME="v%3ApixbufComposite"
></A
></A
><B
>pixbufComposite</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufComposite"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="rdoc"
><TT
>src</TT
> - the source pixbuf
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="rdoc"
><TT
>dest</TT
> - the pixbuf into which to render the results
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
><TT
>destX</TT
> - the left coordinate for region to render
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
><TT
>destY</TT
> - the top coordinate for region to render
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
><TT
>destWidth</TT
> - the width of the region to render
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
><TT
>destHeight</TT
> - the height of the region to render
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
></TD
><TD CLASS="rdoc"
><TT
>offsetX</TT
> - the offset in the X direction (currently
 rounded to an integer)
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
></TD
><TD CLASS="rdoc"
><TT
>offsetY</TT
> - the offset in the Y direction
 (currently rounded to an integer)
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
></TD
><TD CLASS="rdoc"
><TT
>scaleX</TT
> - the scale factor in the X direction
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3ADouble"
>Double</A
></TD
><TD CLASS="rdoc"
><TT
>scaleY</TT
> - the scale factor in the Y direction
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3AInterpType"
>InterpType</A
></TD
><TD CLASS="rdoc"
>the interpolation type for the transformation.
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
></TD
><TD CLASS="rdoc"
><TT
>alpha</TT
> - the transparency
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
><P
>Blend a scaled image part onto another image.
</P
><UL
><LI
> This function is similar to <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3ApixbufScale"
>pixbufScale</A
></TT
> but allows the
 original image to &quot;shine through&quot;. The <TT
>alpha</TT
> value determines
 how opaque the source image is. Passing <TT
>0</TT
> is
 equivalent to not calling this function at all, passing
 <TT
>255</TT
> has the
 same effect as calling <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3ApixbufScale"
>pixbufScale</A
></TT
>.
</LI
></UL
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufFlipHorizontally"
><A NAME="v%3ApixbufFlipHorizontally"
></A
></A
><B
>pixbufFlipHorizontally</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufFlipHorizontally"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>Flips a pixbuf horizontally and returns the result in a new pixbuf.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufFlipHorazontally"
><A NAME="v%3ApixbufFlipHorazontally"
></A
></A
><B
>pixbufFlipHorazontally</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufFlipHorazontally"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufFlipVertically"
><A NAME="v%3ApixbufFlipVertically"
></A
></A
><B
>pixbufFlipVertically</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufFlipVertically"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>Flips a pixbuf vertically and returns the result in a new pixbuf.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufRotateSimple"
><A NAME="v%3ApixbufRotateSimple"
></A
></A
><B
>pixbufRotateSimple</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufRotation"
>PixbufRotation</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufRotateSimple"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
>Rotates a pixbuf by a multiple of 90 degrees, and returns the result in a
 new pixbuf.
</TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><SPAN CLASS="keyword"
>data</SPAN
>  <A NAME="t:PixbufRotation"
><A NAME="t%3APixbufRotation"
></A
></A
><B
>PixbufRotation</B
>  </TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#PixbufRotation"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="ndoc"
><P
>The possible rotations which can be passed to <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3ApixbufRotateSimple"
>pixbufRotateSimple</A
></TT
>.
</P
><P
>To make them easier to use, their numerical values are the actual degrees.
</P
></TD
></TR
><TR
><TD CLASS="section4"
>Constructors</TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="arg"
><A NAME="v:PixbufRotateNone"
><A NAME="v%3APixbufRotateNone"
></A
></A
><B
>PixbufRotateNone</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:PixbufRotateCounterclockwise"
><A NAME="v%3APixbufRotateCounterclockwise"
></A
></A
><B
>PixbufRotateCounterclockwise</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:PixbufRotateUpsidedown"
><A NAME="v%3APixbufRotateUpsidedown"
></A
></A
><B
>PixbufRotateUpsidedown</B
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="arg"
><A NAME="v:PixbufRotateClockwise"
><A NAME="v%3APixbufRotateClockwise"
></A
></A
><B
>PixbufRotateClockwise</B
></TD
><TD CLASS="rdoc"
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="section4"
><IMG SRC="minus.gif" CLASS="coll" ONCLICK="toggle(this,'i:PixbufRotation')" ALT="show/hide"
> Instances</TD
></TR
><TR
><TD CLASS="body"
><DIV ID="i:PixbufRotation" STYLE="display:block;"
><TABLE CLASS="vanilla" CELLSPACING="1" CELLPADDING="0"
><TR
><TD CLASS="decl"
><A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Prelude.html#t%3AEnum"
>Enum</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbufRotation"
>PixbufRotation</A
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufAddAlpha"
><A NAME="v%3ApixbufAddAlpha"
></A
></A
><B
>pixbufAddAlpha</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
>, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
>, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
>) -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufAddAlpha"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufCopyArea"
><A NAME="v%3ApixbufCopyArea"
></A
></A
><B
>pixbufCopyArea</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufCopyArea"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="rdoc"
>Source pixbuf
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Source X coordinate within the source pixbuf
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Source Y coordinate within the source pixbuf
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Width of the area to copy
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Height of the area to copy
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="rdoc"
>Destination pixbuf
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>X coordinate within the destination pixbuf
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Y coordinate within the destination pixbuf
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
><P
>Copy a rectangular portion into another <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
>.
</P
><P
>The source <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
> remains unchanged. Converion between
 different formats is done automatically.
</P
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufFill"
><A NAME="v%3ApixbufFill"
></A
></A
><B
>pixbufFill</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Word.html#t%3AWord8"
>Word8</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufFill"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Fills a <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
> with a color.
</P
><UL
><LI
> The passed-in color is a quadruple consisting of the red, green, blue
 and alpha component of the pixel. If the <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
> does not
 have an alpha channel, the alpha value is ignored.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufGetFromDrawable"
><A NAME="v%3ApixbufGetFromDrawable"
></A
></A
><B
>pixbufGetFromDrawable</B
> :: <A HREF="Graphics-UI-Gtk-Gdk-Drawable.html#t%3ADrawableClass"
>DrawableClass</A
> d =&gt; d -&gt; <A HREF="Graphics-UI-Gtk-Gdk-Events.html#t%3ARectangle"
>Rectangle</A
> -&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
>)</TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufGetFromDrawable"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="doc"
><P
>Take a screenshot of a <TT
><A HREF="Graphics-UI-Gtk-Gdk-Drawable.html#t%3ADrawable"
>Drawable</A
></TT
>.
</P
><UL
><LI
> This function creates a <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
> and fills it with the image
 currently in the <TT
><A HREF="Graphics-UI-Gtk-Gdk-Drawable.html#t%3ADrawable"
>Drawable</A
></TT
> (which might be invalid if the
 window is obscured or minimized). Note that this transfers data from
 the server to the client on X Windows.
</LI
><LI
> This function will return a <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TT
> with no alpha channel
 containing the part of the <TT
><A HREF="Graphics-UI-Gtk-Gdk-Drawable.html#t%3ADrawable"
>Drawable</A
></TT
> specified by the
 rectangle. The function will return <TT
>Nothing</TT
> if the window
 is not currently visible.
</LI
></UL
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufRenderThresholdAlpha"
><A NAME="v%3ApixbufRenderThresholdAlpha"
></A
></A
><B
>pixbufRenderThresholdAlpha</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufRenderThresholdAlpha"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="rdoc"
>A pixbuf.
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="Graphics-UI-Gtk-Gdk-Pixmap.html#t%3ABitmap"
>Bitmap</A
></TD
><TD CLASS="rdoc"
>Bitmap where the bilevel mask will be painted to.
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Source X coordinate.
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>source Y coordinate.
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Destination X coordinate.
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Destination Y coordinate.
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Width of region to threshold, or -1 to use pixbuf width
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Height of region to threshold, or -1 to use pixbuf height
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Opacity values below this will be painted as zero; all other values will be painted as one.
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> <A HREF="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t%3A%28%29"
>()</A
></TD
><TD CLASS="rdoc"
></TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
>Takes the opacity values in a rectangular portion of a pixbuf and
 thresholds them to produce a bi-level alpha mask that can be used
 as a clipping mask for a drawable.
</TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="topdecl"
><TABLE CLASS="declbar"
><TR
><TD CLASS="declname"
><A NAME="v:pixbufRenderPixmapAndMaskForColormap"
><A NAME="v%3ApixbufRenderPixmapAndMaskForColormap"
></A
></A
><B
>pixbufRenderPixmapAndMaskForColormap</B
></TD
><TD CLASS="declbut"
><A HREF="src/Graphics-UI-Gtk-Gdk-Pixbuf.html#pixbufRenderPixmapAndMaskForColormap"
>Source</A
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="body"
><TABLE CLASS="vanilla" CELLSPACING="0" CELLPADDING="0"
><TR
><TD CLASS="arg"
>:: <A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#t%3APixbuf"
>Pixbuf</A
></TD
><TD CLASS="rdoc"
>A pixbuf.
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; Colormap</TD
><TD CLASS="rdoc"
>A Colormap
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Int.html#t%3AInt"
>Int</A
></TD
><TD CLASS="rdoc"
>Threshold value for opacity values
</TD
></TR
><TR
><TD CLASS="arg"
>-&gt; <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/System-IO.html#t%3AIO"
>IO</A
> (<A HREF="Graphics-UI-Gtk-Gdk-Pixmap.html#t%3APixmap"
>Pixmap</A
>, <A HREF="/usr/share/doc/ghc/html/libraries/base-4.2.0.2/Data-Maybe.html#t%3AMaybe"
>Maybe</A
> <A HREF="Graphics-UI-Gtk-Gdk-Pixmap.html#t%3ABitmap"
>Bitmap</A
>)</TD
><TD CLASS="rdoc"
>(Created pixmap, created mask)
</TD
></TR
><TR
><TD CLASS="ndoc" COLSPAN="2"
><P
>Creates a pixmap and a mask bitmap which are returned and renders
 a pixbuf and its corresponding thresholded alpha mask to them. This
 is merely a convenience function; applications that need to render
 pixbufs with dither offsets or to given drawables should use
 Graphics.UI.Gtk.Gdk.Drawable.drawPixbuf, and
 <TT
><A HREF="Graphics-UI-Gtk-Gdk-Pixbuf.html#v%3ApixbufRenderThresholdAlpha"
>pixbufRenderThresholdAlpha</A
></TT
>.
</P
><P
>The pixmap that is created uses the <TT
>Colormap</TT
> specified by
 colormap. This colormap must match the colormap of the window where
 the pixmap will eventually be used or an error will result.
</P
><P
>If the pixbuf does not have an alpha channel, then the returned
 mask will be <TT
>Nothing</TT
>.
</P
></TD
></TR
></TABLE
></TD
></TR
><TR
><TD CLASS="s15"
></TD
></TR
><TR
><TD CLASS="botbar"
>Produced by <A HREF="http://www.haskell.org/haddock/"
>Haddock</A
> version 2.6.1</TD
></TR
></TABLE
></BODY
></HTML
>