This file is indexed.

/usr/share/doc/libghc-gd-doc/html/Graphics-GD-ByteString.html is in libghc-gd-doc 3000.7.3-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Graphics.GD.ByteString</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-GD-ByteString.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-GD-ByteString.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">gd-3000.7.3: A Haskell binding to a subset of the GD graphics library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr></table><p class="caption">Graphics.GD.ByteString</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Types
</a></li><li><a href="#g:2">Creating and copying images
</a></li><li><a href="#g:3">Memory management
</a></li><li><a href="#g:4">Loading images
</a><ul><li><a href="#g:5">JPEG
</a></li><li><a href="#g:6">PNG
</a></li><li><a href="#g:7">GIF
</a></li></ul></li><li><a href="#g:8">Saving images
</a><ul><li><a href="#g:9">JPEG
</a></li><li><a href="#g:10">PNG
</a></li><li><a href="#g:11">GIF
</a></li></ul></li><li><a href="#g:12">Getting image information
</a></li><li><a href="#g:13">Querying
</a></li><li><a href="#g:14">Manipulating images
</a></li><li><a href="#g:15">Drawing
</a></li><li><a href="#g:16">Text
</a></li><li><a href="#g:17">Colors
</a></li></ul></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span>  <a href="#t:Image">Image</a> </li><li class="src short"><span class="keyword">type</span> <a href="#t:Size">Size</a> = (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>)</li><li class="src short"><span class="keyword">type</span> <a href="#t:Point">Point</a> = (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>)</li><li class="src short"><span class="keyword">type</span> <a href="#t:Color">Color</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CInt">CInt</a></li><li class="src short"><a href="#v:newImage">newImage</a> :: <a href="Graphics-GD-ByteString.html#t:Size">Size</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:copyImage">copyImage</a> :: <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:copyRegion">copyRegion</a> :: <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Size">Size</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:copyRegionScaled">copyRegionScaled</a> :: <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Size">Size</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Size">Size</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:withImage">withImage</a> ::  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; (<a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> b) -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> b</li><li class="src short"><a href="#v:loadJpegFile">loadJpegFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:loadJpegData">loadJpegData</a> ::  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> a -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:loadJpegByteString">loadJpegByteString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:loadPngFile">loadPngFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:loadPngData">loadPngData</a> ::  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> a -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:loadPngByteString">loadPngByteString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:loadGifFile">loadGifFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:loadGifData">loadGifData</a> ::  <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> a -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:loadGifByteString">loadGifByteString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:saveJpegFile">saveJpegFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:saveJpegByteString">saveJpegByteString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:savePngFile">savePngFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:savePngByteString">savePngByteString</a> :: <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:saveGifFile">saveGifFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:saveGifByteString">saveGifByteString</a> :: <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:imageSize">imageSize</a> :: <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>)</li><li class="src short"><a href="#v:getPixel">getPixel</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>) -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Color">Color</a></li><li class="src short"><a href="#v:resizeImage">resizeImage</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:rotateImage">rotateImage</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></li><li class="src short"><a href="#v:fillImage">fillImage</a> :: <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:drawFilledRectangle">drawFilledRectangle</a> :: <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:drawFilledEllipse">drawFilledEllipse</a> :: <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Size">Size</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:drawLine">drawLine</a> :: <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:drawArc">drawArc</a> :: <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Size">Size</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:antiAliased">antiAliased</a> ::  (<a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a) -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a</li><li class="src short"><a href="#v:setPixel">setPixel</a> :: <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:useFontConfig">useFontConfig</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:drawString">drawString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="Graphics-GD-ByteString.html#t:Point">Point</a>, <a href="Graphics-GD-ByteString.html#t:Point">Point</a>, <a href="Graphics-GD-ByteString.html#t:Point">Point</a>, <a href="Graphics-GD-ByteString.html#t:Point">Point</a>)</li><li class="src short"><a href="#v:measureString">measureString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="Graphics-GD-ByteString.html#t:Point">Point</a>, <a href="Graphics-GD-ByteString.html#t:Point">Point</a>, <a href="Graphics-GD-ByteString.html#t:Point">Point</a>, <a href="Graphics-GD-ByteString.html#t:Point">Point</a>)</li><li class="src short"><a href="#v:drawStringCircle">drawStringCircle</a> :: <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:rgb">rgb</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a></li><li class="src short"><a href="#v:rgba">rgba</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a></li><li class="src short"><a href="#v:toRGBA">toRGBA</a> :: <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>)</li></ul></div><div id="interface"><h1 id="g:1">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Image" class="def">Image</a>  <a href="src/Graphics-GD-Internal.html#Image" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Size" class="def">Size</a> = (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>)<a href="src/Graphics-GD-Internal.html#Size" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Point" class="def">Point</a> = (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>)<a href="src/Graphics-GD-Internal.html#Point" class="link">Source</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:Color" class="def">Color</a> = <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-C-Types.html#t:CInt">CInt</a><a href="src/Graphics-GD-Internal.html#Color" class="link">Source</a></p></div><h1 id="g:2">Creating and copying images
</h1><div class="top"><p class="src"><a name="v:newImage" class="def">newImage</a> :: <a href="Graphics-GD-ByteString.html#t:Size">Size</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a><a href="src/Graphics-GD-Internal.html#newImage" class="link">Source</a></p><div class="doc"><p>Create a new empty image.
</p></div></div><div class="top"><p class="src"><a name="v:copyImage" class="def">copyImage</a> :: <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a><a href="src/Graphics-GD-Internal.html#copyImage" class="link">Source</a></p><div class="doc"><p>Make a copy of an image.
</p></div></div><div class="top"><p class="src"><a name="v:copyRegion" class="def">copyRegion</a><a href="src/Graphics-GD-Internal.html#copyRegion" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>Source upper left-hand corner
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Size">Size</a></td><td class="doc"><p>Size of copied region
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc"><p>Source image
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>Destination upper left-hand corner
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc"><p>Destination image
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Copy a region of one image into another
</p></div></div><div class="top"><p class="src"><a name="v:copyRegionScaled" class="def">copyRegionScaled</a><a href="src/Graphics-GD-Internal.html#copyRegionScaled" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>Source upper left-hand corner
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Size">Size</a></td><td class="doc"><p>Size of source region
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc"><p>Source image
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>Destination upper left-hand corner
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Size">Size</a></td><td class="doc"><p>Size of destination region
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc"><p>Destination image
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Copy a region of one image into another, rescaling the region 
</p></div></div><h1 id="g:3">Memory management
</h1><div class="top"><p class="src"><a name="v:withImage" class="def">withImage</a><a href="src/Graphics-GD-Internal.html#withImage" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc"><p>Image creation action.
</p></td></tr><tr><td class="src">-&gt; (<a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> b)</td><td class="doc"><p>Some operation on the image. The result should
 not reference the <code><a href="Graphics-GD-ByteString.html#t:Image">Image</a></code>.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> b</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Creates an image, performs an operation on the image, and
 frees it.
 This function allows block scoped management of <code><a href="Graphics-GD-ByteString.html#t:Image">Image</a></code>
 objects.  If you are handling large images, the delay before
 the finalizer which frees the image runs may cause significant
 temporary extra memory use.  Use this function to force the
 image to be freed as soons as you are done with it.  Note that
 it is unsafe to hold on to the <code><a href="Graphics-GD-ByteString.html#t:Image">Image</a></code> after the function is
 done.
</p></div></div><h1 id="g:4">Loading images
</h1><h2 id="g:5">JPEG
</h2><div class="top"><p class="src"><a name="v:loadJpegFile" class="def">loadJpegFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a><a href="src/Graphics-GD-ByteString.html#loadJpegFile" class="link">Source</a></p><div class="doc"><p>Load a JPEG image from a file.
</p></div></div><div class="top"><p class="src"><a name="v:loadJpegData" class="def">loadJpegData</a><a href="src/Graphics-GD-ByteString.html#loadJpegData" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Buffer size.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> a</td><td class="doc"><p>Buffer with image data.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Load a JPEG image from a buffer.
</p></div></div><div class="top"><p class="src"><a name="v:loadJpegByteString" class="def">loadJpegByteString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a><a href="src/Graphics-GD-ByteString.html#loadJpegByteString" class="link">Source</a></p><div class="doc"><p>Load a JPEG image from a ByteString
</p></div></div><h2 id="g:6">PNG
</h2><div class="top"><p class="src"><a name="v:loadPngFile" class="def">loadPngFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a><a href="src/Graphics-GD-ByteString.html#loadPngFile" class="link">Source</a></p><div class="doc"><p>Load a PNG image from a file.
</p></div></div><div class="top"><p class="src"><a name="v:loadPngData" class="def">loadPngData</a><a href="src/Graphics-GD-ByteString.html#loadPngData" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Buffer size.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> a</td><td class="doc"><p>Buffer with image data.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Load a PNG image from a buffer.
</p></div></div><div class="top"><p class="src"><a name="v:loadPngByteString" class="def">loadPngByteString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a><a href="src/Graphics-GD-ByteString.html#loadPngByteString" class="link">Source</a></p><div class="doc"><p>Load a PNG image from a ByteString
</p></div></div><h2 id="g:7">GIF
</h2><div class="top"><p class="src"><a name="v:loadGifFile" class="def">loadGifFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a><a href="src/Graphics-GD-ByteString.html#loadGifFile" class="link">Source</a></p><div class="doc"><p>Load a GIF image from a file.
</p></div></div><div class="top"><p class="src"><a name="v:loadGifData" class="def">loadGifData</a><a href="src/Graphics-GD-ByteString.html#loadGifData" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Buffer size.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Foreign-Ptr.html#t:Ptr">Ptr</a> a</td><td class="doc"><p>Buffer with image data.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Load a GIF image from a buffer.
</p></div></div><div class="top"><p class="src"><a name="v:loadGifByteString" class="def">loadGifByteString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a><a href="src/Graphics-GD-ByteString.html#loadGifByteString" class="link">Source</a></p><div class="doc"><p>Load a GIF image from a ByteString
</p></div></div><h1 id="g:8">Saving images
</h1><h2 id="g:9">JPEG
</h2><div class="top"><p class="src"><a name="v:saveJpegFile" class="def">saveJpegFile</a><a href="src/Graphics-GD-ByteString.html#saveJpegFile" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>quality: 0-95, or negative for default quality.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Save an image as a JPEG file.
</p></div></div><div class="top"><p class="src"><a name="v:saveJpegByteString" class="def">saveJpegByteString</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Graphics-GD-ByteString.html#saveJpegByteString" class="link">Source</a></p><div class="doc"><p>Write a JPEG format ByteString of an image.
</p></div></div><h2 id="g:10">PNG
</h2><div class="top"><p class="src"><a name="v:savePngFile" class="def">savePngFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/Graphics-GD-ByteString.html#savePngFile" class="link">Source</a></p><div class="doc"><p>Save an image as a PNG file.
</p></div></div><div class="top"><p class="src"><a name="v:savePngByteString" class="def">savePngByteString</a> :: <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Graphics-GD-ByteString.html#savePngByteString" class="link">Source</a></p><div class="doc"><p>Write a PNG format ByteString of an image.
</p></div></div><h2 id="g:11">GIF
</h2><div class="top"><p class="src"><a name="v:saveGifFile" class="def">saveGifFile</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/Graphics-GD-ByteString.html#saveGifFile" class="link">Source</a></p><div class="doc"><p>Save an image as a GIF file.
</p></div></div><div class="top"><p class="src"><a name="v:saveGifByteString" class="def">saveGifByteString</a> :: <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a><a href="src/Graphics-GD-ByteString.html#saveGifByteString" class="link">Source</a></p><div class="doc"><p>Write a GIF format ByteString of an image.
</p></div></div><h1 id="g:12">Getting image information
</h1><div class="top"><p class="src"><a name="v:imageSize" class="def">imageSize</a><a href="src/Graphics-GD-Internal.html#imageSize" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>)</td><td class="doc"><p>(width, height)
</p></td></tr></table></div><div class="doc"><p>Get the size of an image.
</p></div></div><h1 id="g:13">Querying
</h1><div class="top"><p class="src"><a name="v:getPixel" class="def">getPixel</a> :: (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>) -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Color">Color</a><a href="src/Graphics-GD-Internal.html#getPixel" class="link">Source</a></p><div class="doc"><p>Retrieves the color index or the color values of a particular pixel.
</p></div></div><h1 id="g:14">Manipulating images
</h1><div class="top"><p class="src"><a name="v:resizeImage" class="def">resizeImage</a><a href="src/Graphics-GD-Internal.html#resizeImage" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>width in pixels of output image
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>height in pixels of output image
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Resize an image to a give size.
</p></div></div><div class="top"><p class="src"><a name="v:rotateImage" class="def">rotateImage</a><a href="src/Graphics-GD-Internal.html#rotateImage" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>1 for 90 degrees counter-clockwise, 
 2 for 180 degrees, etc.
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Rotate an image by a multiple of 90 degrees counter-clockwise.
</p></div></div><h1 id="g:15">Drawing
</h1><div class="top"><p class="src"><a name="v:fillImage" class="def">fillImage</a> :: <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/Graphics-GD-Internal.html#fillImage" class="link">Source</a></p><div class="doc"><p>Fill the entire image with the given color.
</p></div></div><div class="top"><p class="src"><a name="v:drawFilledRectangle" class="def">drawFilledRectangle</a><a href="src/Graphics-GD-Internal.html#drawFilledRectangle" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>Upper left corner
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>Lower right corner
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a name="v:drawFilledEllipse" class="def">drawFilledEllipse</a><a href="src/Graphics-GD-Internal.html#drawFilledEllipse" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>Center
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Size">Size</a></td><td class="doc"><p>Width and height
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a name="v:drawLine" class="def">drawLine</a><a href="src/Graphics-GD-Internal.html#drawLine" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>Start
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>End
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a name="v:drawArc" class="def">drawArc</a><a href="src/Graphics-GD-Internal.html#drawArc" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>Center
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Size">Size</a></td><td class="doc"><p>Width and height
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Starting position (degrees)
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Ending position (degrees)
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a name="v:antiAliased" class="def">antiAliased</a> ::  (<a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a) -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> a<a href="src/Graphics-GD-Internal.html#antiAliased" class="link">Source</a></p><div class="doc"><p>Use anti-aliasing when performing the given drawing function.
   This can cause a segault with some gd versions.
</p></div></div><div class="top"><p class="src"><a name="v:setPixel" class="def">setPixel</a> :: <a href="Graphics-GD-ByteString.html#t:Point">Point</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()<a href="src/Graphics-GD-Internal.html#setPixel" class="link">Source</a></p></div><h1 id="g:16">Text
</h1><div class="top"><p class="src"><a name="v:useFontConfig" class="def">useFontConfig</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-GD-Internal.html#useFontConfig" class="link">Source</a></p><div class="doc"><p>Globally switch from using font file names to fontconfig paths
 | for fonts in drawString (and measureString).
</p></div></div><div class="top"><p class="src"><a name="v:drawString" class="def">drawString</a><a href="src/Graphics-GD-ByteString.html#drawString" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>Font name
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a></td><td class="doc"><p>Font point size
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a></td><td class="doc"><p>Angle in counterclockwise radians
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>Origin
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>Text, including HTML entities
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="Graphics-GD-ByteString.html#t:Point">Point</a>, <a href="Graphics-GD-ByteString.html#t:Point">Point</a>, <a href="Graphics-GD-ByteString.html#t:Point">Point</a>, <a href="Graphics-GD-ByteString.html#t:Point">Point</a>)</td><td class="doc"><p>Bounding box
 of the drawn
 text
</p></td></tr></table></div><div class="doc"><p>Draw a string using the FreeType 2.x library
</p></div></div><div class="top"><p class="src"><a name="v:measureString" class="def">measureString</a><a href="src/Graphics-GD-ByteString.html#measureString" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>Font name
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a></td><td class="doc"><p>Font point size
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a></td><td class="doc"><p>Angle in counterclockwise radians
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>Origin
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>Text, including HTML entities
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> (<a href="Graphics-GD-ByteString.html#t:Point">Point</a>, <a href="Graphics-GD-ByteString.html#t:Point">Point</a>, <a href="Graphics-GD-ByteString.html#t:Point">Point</a>, <a href="Graphics-GD-ByteString.html#t:Point">Point</a>)</td><td class="doc"><p>Bounding
 box of the
 drawn text
</p></td></tr></table></div><div class="doc"><p>Measure a string using the FreeType 2.x library.  This computes
 the bounding box but does not actually draw the string to any
 image.
</p></div></div><div class="top"><p class="src"><a name="v:drawStringCircle" class="def">drawStringCircle</a><a href="src/Graphics-GD-ByteString.html#drawStringCircle" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-GD-ByteString.html#t:Point">Point</a></td><td class="doc"><p>Center of text path circle
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a></td><td class="doc"><p>Outer radius of text
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a></td><td class="doc"><p>Fraction of radius occupied by text
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a></td><td class="doc"><p>Portion of circle arc filled by text
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>Font name
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Prelude.html#t:Double">Double</a></td><td class="doc"><p>Font size hint
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>Text to write on the top of the circle
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.0.2/Data-ByteString.html#t:ByteString">ByteString</a></td><td class="doc"><p>Text to write on the bottom of the circle
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a></td><td class="doc"><p>Text color
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Image">Image</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Draw strings around the top and bottom of a torus
</p></div></div><h1 id="g:17">Colors
</h1><div class="top"><p class="src"><a name="v:rgb" class="def">rgb</a><a href="src/Graphics-GD-Internal.html#rgb" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Red (0-255)
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Green (0-255)
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Blue (0-255)
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a name="v:rgba" class="def">rgba</a><a href="src/Graphics-GD-Internal.html#rgba" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Red (0-255)
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Green (0-255)
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Blue (0-255)
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>Alpha (0-127), 0 is opaque, 127 is transparent
</p></td></tr><tr><td class="src">-&gt; <a href="Graphics-GD-ByteString.html#t:Color">Color</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div><div class="top"><p class="src"><a name="v:toRGBA" class="def">toRGBA</a> :: <a href="Graphics-GD-ByteString.html#t:Color">Color</a> -&gt; (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.6.0.1/Data-Int.html#t:Int">Int</a>)<a href="src/Graphics-GD-Internal.html#toRGBA" class="link">Source</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.13.2</p></div></body></html>