<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_17) on Sun Nov 03 15:35:44 CET 2013 -->
<title>Gdx2DPixmap (libgdx API)
</title>
<meta name="date" content="2013-11-03">
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Gdx2DPixmap (libgdx API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.
</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview
</a></li>
<li><a href="package-summary.html">Package
</a></li>
<li class="navBarCell1Rev">Class
</li>
<li><a href="class-use/Gdx2DPixmap.html">Use
</a></li>
<li><a href="package-tree.html">Tree
</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated
</a></li>
<li><a href="../../../../../index-all.html">Index
</a></li>
<li><a href="../../../../../help-doc.html">Help
</a></li>
</ul>
<div class="aboutLanguage"><em>
libgdx API
<style>
body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold }
.TableHeadingColor { background:#EEEEFF; }
a { text-decoration:none }
a:hover { text-decoration:underline }
a:link, a:visited { color:blue }
table { border:0px }
.TableRowColor td:first-child { border-left:1px solid black }
.TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
hr { border:0px; border-bottom:1px solid #333366; }
</style>
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/badlogic/gdx/graphics/g2d/BitmapFontCache.html" title="class in com.badlogic.gdx.graphics.g2d"><span class="strong">Prev Class
</span></a></li>
<li><a href="../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d"><span class="strong">Next Class
</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html" target="_top">Frames
</a></li>
<li><a href="Gdx2DPixmap.html" target="_top">No Frames
</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes
</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:
</li>
<li>Nested
|
</li>
<li><a href="#field_summary">Field
</a> |
</li>
<li><a href="#constructor_summary">Constr
</a> |
</li>
<li><a href="#method_summary">Method
</a></li>
</ul>
<ul class="subNavList">
<li>Detail:
</li>
<li><a href="#field_detail">Field
</a> |
</li>
<li><a href="#constructor_detail">Constr
</a> |
</li>
<li><a href="#method_detail">Method
</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.badlogic.gdx.graphics.g2d
</div>
<h2 title="Class Gdx2DPixmap" class="title">Class Gdx2DPixmap
</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object
</li>
<li>
<ul class="inheritance">
<li>com.badlogic.gdx.graphics.g2d.Gdx2DPixmap
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:
</dt>
<dd><a href="../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable
</a></dd>
</dl>
<hr>
<br>
<pre>public class
<span class="strong">Gdx2DPixmap
</span>
extends java.lang.Object
implements
<a href="../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable
</a></pre>
<dl><dt><span class="strong">Author:
</span></dt>
<dd>mzechner
</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type
</th>
<th class="colLast" scope="col">Field and Description
</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#GDX2D_BLEND_NONE">GDX2D_BLEND_NONE
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#GDX2D_BLEND_SRC_OVER">GDX2D_BLEND_SRC_OVER
</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#GDX2D_FORMAT_ALPHA">GDX2D_FORMAT_ALPHA
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#GDX2D_FORMAT_LUMINANCE_ALPHA">GDX2D_FORMAT_LUMINANCE_ALPHA
</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#GDX2D_FORMAT_RGB565">GDX2D_FORMAT_RGB565
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#GDX2D_FORMAT_RGB888">GDX2D_FORMAT_RGB888
</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#GDX2D_FORMAT_RGBA4444">GDX2D_FORMAT_RGBA4444
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#GDX2D_FORMAT_RGBA8888">GDX2D_FORMAT_RGBA8888
</a></strong></code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#GDX2D_SCALE_LINEAR">GDX2D_SCALE_LINEAR
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#GDX2D_SCALE_NEAREST">GDX2D_SCALE_NEAREST
</a></strong></code> </td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description
</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#Gdx2DPixmap(byte[], int, int, int)">Gdx2DPixmap
</a></strong>(byte[]
encodedData,
int
offset,
int
len,
int
requestedFormat)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#Gdx2DPixmap(java.nio.ByteBuffer, long[])">Gdx2DPixmap
</a></strong>(java.nio.ByteBuffer
pixelPtr,
long[]
nativeData)
</code> </td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#Gdx2DPixmap(java.io.InputStream, int)">Gdx2DPixmap
</a></strong>(java.io.InputStream
in,
int
requestedFormat)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#Gdx2DPixmap(int, int, int)">Gdx2DPixmap
</a></strong>(int
width,
int
height,
int
format)
</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type
</th>
<th class="colLast" scope="col">Method and Description
</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#clear(int)">clear
</a></strong>(int
color)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#dispose()">dispose
</a></strong>()
</code>
<div class="block">Releases all resources of this object.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#drawCircle(int, int, int, int)">drawCircle
</a></strong>(int
x,
int
y,
int
radius,
int
color)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#drawLine(int, int, int, int, int)">drawLine
</a></strong>(int
x,
int
y,
int
x2,
int
y2,
int
color)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#drawPixmap(com.badlogic.gdx.graphics.g2d.Gdx2DPixmap, int, int, int, int, int, int)">drawPixmap
</a></strong>(
<a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html" title="class in com.badlogic.gdx.graphics.g2d">Gdx2DPixmap
</a> src,
int
srcX,
int
srcY,
int
dstX,
int
dstY,
int
width,
int
height)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#drawPixmap(com.badlogic.gdx.graphics.g2d.Gdx2DPixmap, int, int, int, int, int, int, int, int)">drawPixmap
</a></strong>(
<a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html" title="class in com.badlogic.gdx.graphics.g2d">Gdx2DPixmap
</a> src,
int
srcX,
int
srcY,
int
srcWidth,
int
srcHeight,
int
dstX,
int
dstY,
int
dstWidth,
int
dstHeight)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#drawRect(int, int, int, int, int)">drawRect
</a></strong>(int
x,
int
y,
int
width,
int
height,
int
color)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#fillCircle(int, int, int, int)">fillCircle
</a></strong>(int
x,
int
y,
int
radius,
int
color)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#fillRect(int, int, int, int, int)">fillRect
</a></strong>(int
x,
int
y,
int
width,
int
height,
int
color)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#fillTriangle(int, int, int, int, int, int, int)">fillTriangle
</a></strong>(int
x1,
int
y1,
int
x2,
int
y2,
int
x3,
int
y3,
int
color)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#getFailureReason()">getFailureReason
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#getFormat()">getFormat
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#getFormatString()">getFormatString
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#getGLFormat()">getGLFormat
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#getGLInternalFormat()">getGLInternalFormat
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#getGLType()">getGLType
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#getHeight()">getHeight
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#getPixel(int, int)">getPixel
</a></strong>(int
x,
int
y)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.nio.ByteBuffer
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#getPixels()">getPixels
</a></strong>()
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#getWidth()">getWidth
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static
<a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html" title="class in com.badlogic.gdx.graphics.g2d">Gdx2DPixmap
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#newPixmap(java.io.InputStream, int)">newPixmap
</a></strong>(java.io.InputStream
in,
int
requestedFormat)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static
<a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html" title="class in com.badlogic.gdx.graphics.g2d">Gdx2DPixmap
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#newPixmap(int, int, int)">newPixmap
</a></strong>(int
width,
int
height,
int
format)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#setBlend(int)">setBlend
</a></strong>(int
blend)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#setPixel(int, int, int)">setPixel
</a></strong>(int
x,
int
y,
int
color)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static void
</code></td>
<td class="colLast"><code><strong><a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html#setScale(int)">setScale
</a></strong>(int
scale)
</code> </td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class
java.lang.Object
</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail
</h3>
<a name="GDX2D_FORMAT_ALPHA">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GDX2D_FORMAT_ALPHA
</h4>
<pre>public static final
int GDX2D_FORMAT_ALPHA
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../constant-values.html#com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.GDX2D_FORMAT_ALPHA">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="GDX2D_FORMAT_LUMINANCE_ALPHA">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GDX2D_FORMAT_LUMINANCE_ALPHA
</h4>
<pre>public static final
int GDX2D_FORMAT_LUMINANCE_ALPHA
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../constant-values.html#com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.GDX2D_FORMAT_LUMINANCE_ALPHA">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="GDX2D_FORMAT_RGB888">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GDX2D_FORMAT_RGB888
</h4>
<pre>public static final
int GDX2D_FORMAT_RGB888
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../constant-values.html#com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.GDX2D_FORMAT_RGB888">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="GDX2D_FORMAT_RGBA8888">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GDX2D_FORMAT_RGBA8888
</h4>
<pre>public static final
int GDX2D_FORMAT_RGBA8888
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../constant-values.html#com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.GDX2D_FORMAT_RGBA8888">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="GDX2D_FORMAT_RGB565">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GDX2D_FORMAT_RGB565
</h4>
<pre>public static final
int GDX2D_FORMAT_RGB565
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../constant-values.html#com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.GDX2D_FORMAT_RGB565">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="GDX2D_FORMAT_RGBA4444">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GDX2D_FORMAT_RGBA4444
</h4>
<pre>public static final
int GDX2D_FORMAT_RGBA4444
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../constant-values.html#com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.GDX2D_FORMAT_RGBA4444">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="GDX2D_SCALE_NEAREST">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GDX2D_SCALE_NEAREST
</h4>
<pre>public static final
int GDX2D_SCALE_NEAREST
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../constant-values.html#com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.GDX2D_SCALE_NEAREST">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="GDX2D_SCALE_LINEAR">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GDX2D_SCALE_LINEAR
</h4>
<pre>public static final
int GDX2D_SCALE_LINEAR
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../constant-values.html#com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.GDX2D_SCALE_LINEAR">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="GDX2D_BLEND_NONE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>GDX2D_BLEND_NONE
</h4>
<pre>public static final
int GDX2D_BLEND_NONE
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../constant-values.html#com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.GDX2D_BLEND_NONE">Constant Field Values
</a></dd></dl>
</li>
</ul>
<a name="GDX2D_BLEND_SRC_OVER">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>GDX2D_BLEND_SRC_OVER
</h4>
<pre>public static final
int GDX2D_BLEND_SRC_OVER
</pre>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../../constant-values.html#com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.GDX2D_BLEND_SRC_OVER">Constant Field Values
</a></dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail
</h3>
<a name="Gdx2DPixmap(byte[], int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Gdx2DPixmap
</h4>
<pre>public
Gdx2DPixmap(byte[]
encodedData,
int
offset,
int
len,
int
requestedFormat)
throws java.io.IOException
</pre>
<dl><dt><span class="strong">Throws:
</span></dt>
<dd><code>java.io.IOException
</code></dd></dl>
</li>
</ul>
<a name="Gdx2DPixmap(java.io.InputStream, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Gdx2DPixmap
</h4>
<pre>public
Gdx2DPixmap(java.io.InputStream
in,
int
requestedFormat)
throws java.io.IOException
</pre>
<dl><dt><span class="strong">Throws:
</span></dt>
<dd><code>java.io.IOException
</code></dd></dl>
</li>
</ul>
<a name="Gdx2DPixmap(int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>Gdx2DPixmap
</h4>
<pre>public
Gdx2DPixmap(int
width,
int
height,
int
format)
throws
<a href="../../../../../com/badlogic/gdx/utils/GdxRuntimeException.html" title="class in com.badlogic.gdx.utils">GdxRuntimeException
</a></pre>
<dl><dt><span class="strong">Throws:
</span></dt>
<dd><code><a href="../../../../../com/badlogic/gdx/utils/GdxRuntimeException.html" title="class in com.badlogic.gdx.utils">GdxRuntimeException
</a></code> - if allocation failed.
</dd></dl>
</li>
</ul>
<a name="Gdx2DPixmap(java.nio.ByteBuffer, long[])">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>Gdx2DPixmap
</h4>
<pre>public
Gdx2DPixmap(java.nio.ByteBuffer
pixelPtr,
long[]
nativeData)
</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail
</h3>
<a name="dispose()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>dispose
</h4>
<pre>public
void
dispose()
</pre>
<div class="block"><strong>Description copied from interface:
<code><a href="../../../../../com/badlogic/gdx/utils/Disposable.html#dispose()">Disposable
</a></code></strong></div>
<div class="block">Releases all resources of this object.
</div>
<dl>
<dt><strong>Specified by:
</strong></dt>
<dd><code><a href="../../../../../com/badlogic/gdx/utils/Disposable.html#dispose()">dispose
</a></code> in interface
<code><a href="../../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils">Disposable
</a></code></dd>
</dl>
</li>
</ul>
<a name="clear(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clear
</h4>
<pre>public
void
clear(int
color)
</pre>
</li>
</ul>
<a name="setPixel(int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPixel
</h4>
<pre>public
void
setPixel(int
x,
int
y,
int
color)
</pre>
</li>
</ul>
<a name="getPixel(int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPixel
</h4>
<pre>public
int
getPixel(int
x,
int
y)
</pre>
</li>
</ul>
<a name="drawLine(int, int, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawLine
</h4>
<pre>public
void
drawLine(int
x,
int
y,
int
x2,
int
y2,
int
color)
</pre>
</li>
</ul>
<a name="drawRect(int, int, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawRect
</h4>
<pre>public
void
drawRect(int
x,
int
y,
int
width,
int
height,
int
color)
</pre>
</li>
</ul>
<a name="drawCircle(int, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawCircle
</h4>
<pre>public
void
drawCircle(int
x,
int
y,
int
radius,
int
color)
</pre>
</li>
</ul>
<a name="fillRect(int, int, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fillRect
</h4>
<pre>public
void
fillRect(int
x,
int
y,
int
width,
int
height,
int
color)
</pre>
</li>
</ul>
<a name="fillCircle(int, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fillCircle
</h4>
<pre>public
void
fillCircle(int
x,
int
y,
int
radius,
int
color)
</pre>
</li>
</ul>
<a name="fillTriangle(int, int, int, int, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fillTriangle
</h4>
<pre>public
void
fillTriangle(int
x1,
int
y1,
int
x2,
int
y2,
int
x3,
int
y3,
int
color)
</pre>
</li>
</ul>
<a name="drawPixmap(com.badlogic.gdx.graphics.g2d.Gdx2DPixmap, int, int, int, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawPixmap
</h4>
<pre>public
void
drawPixmap(
<a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html" title="class in com.badlogic.gdx.graphics.g2d">Gdx2DPixmap
</a> src,
int
srcX,
int
srcY,
int
dstX,
int
dstY,
int
width,
int
height)
</pre>
</li>
</ul>
<a name="drawPixmap(com.badlogic.gdx.graphics.g2d.Gdx2DPixmap, int, int, int, int, int, int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>drawPixmap
</h4>
<pre>public
void
drawPixmap(
<a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html" title="class in com.badlogic.gdx.graphics.g2d">Gdx2DPixmap
</a> src,
int
srcX,
int
srcY,
int
srcWidth,
int
srcHeight,
int
dstX,
int
dstY,
int
dstWidth,
int
dstHeight)
</pre>
</li>
</ul>
<a name="newPixmap(java.io.InputStream, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newPixmap
</h4>
<pre>public static
<a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html" title="class in com.badlogic.gdx.graphics.g2d">Gdx2DPixmap
</a> newPixmap(java.io.InputStream
in,
int
requestedFormat)
</pre>
</li>
</ul>
<a name="newPixmap(int, int, int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newPixmap
</h4>
<pre>public static
<a href="../../../../../com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html" title="class in com.badlogic.gdx.graphics.g2d">Gdx2DPixmap
</a> newPixmap(int
width,
int
height,
int
format)
</pre>
</li>
</ul>
<a name="getPixels()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPixels
</h4>
<pre>public
java.nio.ByteBuffer
getPixels()
</pre>
</li>
</ul>
<a name="getHeight()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHeight
</h4>
<pre>public
int
getHeight()
</pre>
</li>
</ul>
<a name="getWidth()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWidth
</h4>
<pre>public
int
getWidth()
</pre>
</li>
</ul>
<a name="getFormat()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFormat
</h4>
<pre>public
int
getFormat()
</pre>
</li>
</ul>
<a name="getGLInternalFormat()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGLInternalFormat
</h4>
<pre>public
int
getGLInternalFormat()
</pre>
</li>
</ul>
<a name="getGLFormat()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGLFormat
</h4>
<pre>public
int
getGLFormat()
</pre>
</li>
</ul>
<a name="getGLType()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getGLType
</h4>
<pre>public
int
getGLType()
</pre>
</li>
</ul>
<a name="getFormatString()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getFormatString
</h4>
<pre>public
java.lang.String
getFormatString()
</pre>
</li>
</ul>
<a name="setBlend(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBlend
</h4>
<pre>public static
void
setBlend(int
blend)
</pre>
</li>
</ul>
<a name="setScale(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setScale
</h4>
<pre>public static
void
setScale(int
scale)
</pre>
</li>
</ul>
<a name="getFailureReason()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getFailureReason
</h4>
<pre>public static
java.lang.String
getFailureReason()
</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview
</a></li>
<li><a href="package-summary.html">Package
</a></li>
<li class="navBarCell1Rev">Class
</li>
<li><a href="class-use/Gdx2DPixmap.html">Use
</a></li>
<li><a href="package-tree.html">Tree
</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated
</a></li>
<li><a href="../../../../../index-all.html">Index
</a></li>
<li><a href="../../../../../help-doc.html">Help
</a></li>
</ul>
<div class="aboutLanguage"><em>libgdx API
</em></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../com/badlogic/gdx/graphics/g2d/BitmapFontCache.html" title="class in com.badlogic.gdx.graphics.g2d"><span class="strong">Prev Class
</span></a></li>
<li><a href="../../../../../com/badlogic/gdx/graphics/g2d/NinePatch.html" title="class in com.badlogic.gdx.graphics.g2d"><span class="strong">Next Class
</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?com/badlogic/gdx/graphics/g2d/Gdx2DPixmap.html" target="_top">Frames
</a></li>
<li><a href="Gdx2DPixmap.html" target="_top">No Frames
</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes
</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:
</li>
<li>Nested
|
</li>
<li><a href="#field_summary">Field
</a> |
</li>
<li><a href="#constructor_summary">Constr
</a> |
</li>
<li><a href="#method_summary">Method
</a></li>
</ul>
<ul class="subNavList">
<li>Detail:
</li>
<li><a href="#field_detail">Field
</a> |
</li>
<li><a href="#constructor_detail">Constr
</a> |
</li>
<li><a href="#method_detail">Method
</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
<div style="font-size:9pt"><i>
Copyright
© 2010-2013 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)
</i></div>
</small></p>
</body>
</html>