Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > a228190325affd3a38a9ed14c6aaa02a > files > 164

ocaml-mm-devel-0.2.1-3.mga4.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Image.BGRA.html">
<link rel="next" href="Image.Generic.html">
<link rel="Up" href="Image.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Audio" rel="Chapter" href="Audio.html">
<link title="Image" rel="Chapter" href="Image.html">
<link title="MIDI" rel="Chapter" href="MIDI.html">
<link title="Ringbuffer" rel="Chapter" href="Ringbuffer.html">
<link title="Synth" rel="Chapter" href="Synth.html">
<link title="Video" rel="Chapter" href="Video.html"><link title="Conversions from/to other formats" rel="Section" href="#2_Conversionsfromtootherformats">
<link title="Manipulation of images" rel="Section" href="#2_Manipulationofimages">
<title>Image.RGBA32</title>
</head>
<body>
<div class="navbar"><a class="pre" href="Image.BGRA.html" title="Image.BGRA">Previous</a>
&nbsp;<a class="up" href="Image.html" title="Image">Up</a>
&nbsp;<a class="post" href="Image.Generic.html" title="Image.Generic">Next</a>
</div>
<h1>Module <a href="type_Image.RGBA32.html">Image.RGBA32</a></h1>

<pre><span class="keyword">module</span> RGBA32: <code class="code">sig</code> <a href="Image.RGBA32.html">..</a> <code class="code">end</code></pre><div class="info module top">
Operations on images stored in RGBA32 format (ie RGB channels + an alpha
    channel, one byte for each).<br>
</div>
<hr width="100%">

<pre><span class="keyword">module</span> <a href="Image.RGBA32.Color.html">Color</a>: <code class="code">sig</code> <a href="Image.RGBA32.Color.html">..</a> <code class="code">end</code></pre>
<pre><span id="TYPEdata"><span class="keyword">type</span> <code class="type"></code>data</span> = <code class="type">(int, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t</code> </pre>


<pre><span id="TYPEt"><span class="keyword">type</span> <code class="type"></code>t</span> </pre>
<div class="info ">
An image.<br>
</div>


<pre><span id="VALwidth"><span class="keyword">val</span> width</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> int</code></pre>
<pre><span id="VALheight"><span class="keyword">val</span> height</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> int</code></pre>
<pre><span id="VALdimensions"><span class="keyword">val</span> dimensions</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> int * int</code></pre>
<pre><span id="VALdata"><span class="keyword">val</span> data</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> <a href="Image.RGBA32.html#TYPEdata">data</a></code></pre>
<pre><span id="VALstride"><span class="keyword">val</span> stride</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> int</code></pre>
<pre><span id="VALcreate"><span class="keyword">val</span> create</span> : <code class="type">int -> int -> <a href="Image.RGBA32.html#TYPEt">t</a></code></pre>
<pre><span id="VALmake"><span class="keyword">val</span> make</span> : <code class="type">?stride:int -> int -> int -> <a href="Image.RGBA32.html#TYPEdata">data</a> -> <a href="Image.RGBA32.html#TYPEt">t</a></code></pre>
<pre><span id="VALget_pixel"><span class="keyword">val</span> get_pixel</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> int -> int -> <a href="Image.RGBA32.Color.html#TYPEt">Color.t</a></code></pre>
<pre><span id="VALset_pixel"><span class="keyword">val</span> set_pixel</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> int -> int -> <a href="Image.RGBA32.Color.html#TYPEt">Color.t</a> -> unit</code></pre>
<pre><span id="VALcopy"><span class="keyword">val</span> copy</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> <a href="Image.RGBA32.html#TYPEt">t</a></code></pre>
<pre><span id="VALblit"><span class="keyword">val</span> blit</span> : <code class="type">?blank:bool -><br>       ?x:int -><br>       ?y:int -> ?w:int -> ?h:int -> <a href="Image.RGBA32.html#TYPEt">t</a> -> <a href="Image.RGBA32.html#TYPEt">t</a> -> unit</code></pre>
<pre><span id="VALblit_all"><span class="keyword">val</span> blit_all</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> <a href="Image.RGBA32.html#TYPEt">t</a> -> unit</code></pre><div class="info ">
<code class="code">blit_all src dst</code> copies all the contents of <code class="code">src</code> into <code class="code">dst</code>.<br>
</div>
<br>
<h2 id="2_Conversionsfromtootherformats">Conversions from/to other formats</h2><br>

<pre><span id="VALof_RGB24_string"><span class="keyword">val</span> of_RGB24_string</span> : <code class="type">string -> int -> <a href="Image.RGBA32.html#TYPEt">t</a></code></pre>
<pre><span id="VALto_RGB24_string"><span class="keyword">val</span> to_RGB24_string</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> string</code></pre>
<pre><span id="VALof_BGRA"><span class="keyword">val</span> of_BGRA</span> : <code class="type"><a href="Image.BGRA.html#TYPEt">Image.BGRA.t</a> -> <a href="Image.RGBA32.html#TYPEt">t</a></code></pre>
<pre><span id="VALto_BGRA"><span class="keyword">val</span> to_BGRA</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> <a href="Image.BGRA.html#TYPEt">Image.BGRA.t</a></code></pre>
<pre><span id="VALof_YUV420"><span class="keyword">val</span> of_YUV420</span> : <code class="type"><a href="Image.YUV420.html#TYPEt">Image.YUV420.t</a> -> <a href="Image.RGBA32.html#TYPEt">t</a></code></pre>
<pre><span id="VALto_int_image"><span class="keyword">val</span> to_int_image</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> int array array</code></pre>
<pre><span id="VALto_BMP"><span class="keyword">val</span> to_BMP</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> string</code></pre>
<pre><span id="VALof_PPM"><span class="keyword">val</span> of_PPM</span> : <code class="type">?alpha:<a href="Image.RGB8.Color.html#TYPEt">Image.RGB8.Color.t</a> -> string -> <a href="Image.RGBA32.html#TYPEt">t</a></code></pre>
<pre><span id="VALswap_rb"><span class="keyword">val</span> swap_rb</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> unit</code></pre><div class="info ">
Swap red and blue channels. Useful for quickly handling BGRA formats.<br>
</div>
<br>
<h2 id="2_Manipulationofimages">Manipulation of images</h2><br>

<pre><span id="VALadd"><span class="keyword">val</span> add</span> : <code class="type">?x:int -><br>       ?y:int -> ?w:int -> ?h:int -> <a href="Image.RGBA32.html#TYPEt">t</a> -> <a href="Image.RGBA32.html#TYPEt">t</a> -> unit</code></pre>
<pre><span id="VALfill_all"><span class="keyword">val</span> fill_all</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> <a href="Image.RGBA32.Color.html#TYPEt">Color.t</a> -> unit</code></pre>
<pre><span id="VALblank_all"><span class="keyword">val</span> blank_all</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> unit</code></pre>
<pre><span id="VALrandomize_all"><span class="keyword">val</span> randomize_all</span> : <code class="type"><a href="Image.RGBA32.html#TYPEt">t</a> -> unit</code></pre>
<pre><span class="keyword">module</span> <a href="Image.RGBA32.Scale.html">Scale</a>: <code class="code">sig</code> <a href="Image.RGBA32.Scale.html">..</a> <code class="code">end</code></pre>
<pre><span class="keyword">module</span> <a href="Image.RGBA32.Effect.html">Effect</a>: <code class="code">sig</code> <a href="Image.RGBA32.Effect.html">..</a> <code class="code">end</code></pre>
<pre><span class="keyword">module</span> <a href="Image.RGBA32.Draw.html">Draw</a>: <code class="code">sig</code> <a href="Image.RGBA32.Draw.html">..</a> <code class="code">end</code></pre>
<pre><span class="keyword">module</span> <a href="Image.RGBA32.Motion.html">Motion</a>: <code class="code">sig</code> <a href="Image.RGBA32.Motion.html">..</a> <code class="code">end</code></pre></body></html>