com.caucho.quercus.lib
Class ImageModule.QuercusImage

java.lang.Object
  extended by com.caucho.quercus.env.Value
      extended by com.caucho.quercus.env.ResourceValue
          extended by com.caucho.quercus.lib.ImageModule.QuercusImage
All Implemented Interfaces:
EnvCleanup, java.io.Serializable
Enclosing class:
ImageModule

public static class ImageModule.QuercusImage
extends ResourceValue

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.quercus.env.Value
L, NULL_ARGS, NULL_VALUE_ARRAY, SCALAR_V
 
Constructor Summary
ImageModule.QuercusImage(Env env, Path filename)
           
ImageModule.QuercusImage(java.io.InputStream inputStream)
           
ImageModule.QuercusImage(int width, int height)
           
 
Method Summary
 long allocateColor(int r, int g, int b)
           
 void fill(java.awt.Shape shape, int color)
           
 void flood(int x, int y, int color)
           
 void flood(int x, int y, int color, int border)
           
 java.awt.image.BufferedImage getBrush()
           
 java.awt.Font getFont(int fontIndex)
           
 java.awt.Graphics2D getGraphics()
           
 int getHeight()
           
 int getPixel(int x, int y)
           
 java.awt.Font getTrueTypeFont(Env env, StringValue fontPath)
           
 int getWidth()
           
 boolean isInterlace()
           
 void setBrush(ImageModule.QuercusImage image)
           
 void setInterlace(boolean isInterlace)
           
 void setPixel(int x, int y, int color)
           
 void setStyle(Env env, ArrayValue colors)
           
 void setThickness(int thickness)
           
 void setToFill(boolean isToFill)
           
 void stroke(java.awt.Shape shape, int color)
           
 java.lang.String toString()
          Converts to a string.
 
Methods inherited from class com.caucho.quercus.env.ResourceValue
cleanup, close, printRImpl, toKey, varDumpImpl
 
Methods inherited from class com.caucho.quercus.env.Value
abs, add, add, addOne, append, appendTo, appendTo, appendTo, appendTo, bitAnd, bitOr, bitXor, call, call, call, call, call, call, call, callCopy, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callMethodRef, callRef, callRef, callRef, callRef, callRef, callRef, callRef, charValueAt, checkPrivate, checkProtected, clone, cmp, containsKey, copy, copy, copy, copyArrayItem, copyReturn, copySaveFunArg, copyStringBuilder, copyTree, current, div, div, end, eq, eql, eqValue, findFunction, generate, geq, get, getArg, getArray, getArray, getBaseIterator, getCallableName, getCalledClass, getClassName, getCount, getCountRecursive, getDirty, getField, getFieldArg, getFieldArgRef, getFieldArray, getFieldObject, getFieldVar, getHashCode, getIterator, getKeyArray, getKeyIterator, getObject, getObject, getQuercusClass, getRef, getResourceType, getSize, getThisField, getThisFieldArg, getThisFieldArgRef, getThisFieldArray, getThisFieldObject, getThisFieldVar, getType, getValueArray, getValueIterator, getValueType, getVar, gt, hasCurrent, hashCode, increment, initField, isA, isA, isArray, isBinary, isBoolean, isCallable, isDefault, isDouble, isDoubleConvertible, isEmpty, isFieldInit, isLong, isLongConvertible, isNull, isNumberConvertible, isNumeric, isObject, isResource, isset, isset, issetField, issetThisField, isString, isUnicode, isVar, jsonEncode, key, keyExists, length, leq, lshift, lt, mod, mul, mul, neg, next, nextIndex, pop, pos, postdecr, postincr, postincr, predecr, preincr, preincr, prev, print, print, printDepth, printJavaChar, printJavaString, printR, put, put, put, putField, putField, putField, putObject, putThisField, putThisField, putVar, remove, reset, rshift, serialize, serialize, set, setCharValueAt, setFieldInit, setJavaObject, shuffle, sub_rev, sub, sub, subOne, toArgRef, toArray, toArrayValue, toAutoArray, toAutoObject, toBigDecimal, toBigInteger, toBinaryValue, toBinaryValue, toBinaryValue, toBinaryValueMarshalCost, toBoolean, toBooleanMarshalCost, toByteArrayMarshalCost, toByteMarshalCost, toCallable, toChar, toCharArrayMarshalCost, toCharMarshalCost, toDebugString, toDouble, toDoubleMarshalCost, toDoubleValue, toException, toFloatMarshalCost, toInputStream, toInt, toIntegerMarshalCost, toInternString, toJavaBoolean, toJavaByte, toJavaCalendar, toJavaCharacter, toJavaCollection, toJavaDate, toJavaDouble, toJavaFloat, toJavaInteger, toJavaList, toJavaLong, toJavaMap, toJavaObject, toJavaObject, toJavaObjectMarshalCost, toJavaObjectNotNull, toJavaShort, toJavaString, toJavaURL, toLocalRef, toLocalThis, toLocalValue, toLocalValueReadOnly, toLocalVar, toLocalVarDeclAsRef, toLong, toLongMarshalCost, toLongValue, toObject, toRef, toRefValue, toShortMarshalCost, toString, toStringBuilder, toStringBuilder, toStringBuilder, toStringBuilder, toStringMarshalCost, toStringValue, toStringValue, toStringValueMarshalCost, toUnicode, toUnicodeValue, toUnicodeValue, toUnicodeValueMarshalCost, toValue, toVar, unsetArray, unsetField, unsetThisArray, unsetThisField, valuesToArray, varDump, varExport
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageModule.QuercusImage

public ImageModule.QuercusImage(int width,
                                int height)

ImageModule.QuercusImage

public ImageModule.QuercusImage(java.io.InputStream inputStream)

ImageModule.QuercusImage

public ImageModule.QuercusImage(Env env,
                                Path filename)
Method Detail

toString

public java.lang.String toString()
Description copied from class: ResourceValue
Converts to a string.

Overrides:
toString in class ResourceValue

setInterlace

public void setInterlace(boolean isInterlace)

isInterlace

public boolean isInterlace()

getPixel

public int getPixel(int x,
                    int y)

setPixel

public void setPixel(int x,
                     int y,
                     int color)

getGraphics

public java.awt.Graphics2D getGraphics()

getFont

public java.awt.Font getFont(int fontIndex)

getTrueTypeFont

public java.awt.Font getTrueTypeFont(Env env,
                                     StringValue fontPath)
                              throws java.awt.FontFormatException,
                                     java.io.IOException
Throws:
java.awt.FontFormatException
java.io.IOException

getWidth

public int getWidth()

getHeight

public int getHeight()

fill

public void fill(java.awt.Shape shape,
                 int color)

stroke

public void stroke(java.awt.Shape shape,
                   int color)

setThickness

public void setThickness(int thickness)

setStyle

public void setStyle(Env env,
                     ArrayValue colors)

setBrush

public void setBrush(ImageModule.QuercusImage image)

getBrush

public java.awt.image.BufferedImage getBrush()

setToFill

public void setToFill(boolean isToFill)

allocateColor

public long allocateColor(int r,
                          int g,
                          int b)

flood

public void flood(int x,
                  int y,
                  int color)

flood

public void flood(int x,
                  int y,
                  int color,
                  int border)