|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcodesimian.CS<CSGeneric>
codesimian.DefaultCS
codesimian.Pixels2d
public class Pixels2d
Execute a Pixels2d as a number to get the width of its image (how many pixels wide).
Execute it as a java.awt.BufferedImage to get the BufferedImage. Set its value
as a BufferedImage to replace the image and therefore the width.
Until more code is finished, you can not set the value of any pixels, you can only get them.
For example, the following code creates a Pixels2d for a rectangle of pixels around the mouse:
thisComputersScreen(pixels2d -(mouseXPos .05) -(mouseYPos .05) .1 .1)
| Nested Class Summary | |
|---|---|
static class |
Pixels2d.BrightnessFraction
example code: thisComputersScreen(pixels2dBrightnessFraction -(mouseXPos .05) -(mouseYPos .05) .1 .1) |
| Field Summary | |
|---|---|
java.awt.image.BufferedImage |
image
|
| Fields inherited from class codesimian.CS |
|---|
DESCRIPTION, END, EXECPROXY, HEAP, JAVACODE, MYFUEL, NAME, NEWINSTANCE, NULL, PARENT, PARSEPRIORITY, PREV, TESTER, THIS |
| Constructor Summary | |
|---|---|
Pixels2d()
|
|
| Method Summary | |
|---|---|
int |
countP()
changes if you replace the Image |
double |
DForProxy()
Execute this CS and cast to double. |
static int |
eraseAlpha(int rgb)
|
static void |
eraseAlpha(int[] rgb)
|
java.lang.String |
keyword()
For the CodeSimian language as a String. CodeSimian language keyword, like "+" "*" "max" ">" etc. Override this function if you want to specify a keyword other than how I derive them from the class name, like + for Add. Some CSs might never be intended to be used in the language by their keyword. The best example (4/05) is Num, because it is used in the language like "3.4" instead of "num()". |
java.lang.Object |
LForProxy(java.lang.Class c)
the default implementation can use many Class parameters. |
java.lang.Object |
LForProxy(int start,
java.lang.Class c,
int size)
by default, only works if castToThisType==CS[].class or is a String or List |
int |
minP()
changes if you replace the Image. |
CS |
P(int index)
WARNING: if add CSs then delete them, they are still in the param[] array and can be returned in this function, despite them being out of valid range: index at least countP(). |
double |
PD(int index)
Returns a param as a double. |
int |
PI(int index)
|
boolean |
setL(java.lang.Object o)
setL setD setF setJ setI setS setC setB setZ are functions that SET THE VALUE OF THIS CS to some object, primitive, or array. |
| Methods inherited from class codesimian.DefaultCS |
|---|
B, C, decrementMyFuel, deleteP, description, F, fuel, getExec, getObject, heap, I, indexP, indexPName, insertB, insertC, insertD, insertF, insertI, insertJ, insertL, insertL, insertL1, insertP, insertS, insertZ, J, javaCode, myFuel, name, newInstance, objectToCS, objectToCSArray, objectToCSArray, prevD, prevL, PType, S, setB, setC, setCountP, setD, setD, setExec, setF, setFuel, setI, setJ, setL, setL, setL1, setMyFuel, setName, setObject, setP, setPrevExec, setPType, setS, setZ, start, toString, V, Z |
| Methods inherited from class codesimian.CS |
|---|
addB, addC, addD, addF, addI, addJ, addL, addP, addP, addP, addP, addP, addS, addZ, BForProxy, CForProxy, clone, cost, D, deleteP, FForProxy, GETB, GETC, GETD, GETF, GETI, GETJ, GETL, GETS, GETZ, IForProxy, isIllusion, JForProxy, L, L, L, L, L, maxD, maxP, minD, overwrites, parent, parsePriority, PB, PC, PF, PJ, PL, prevB, prevC, prevF, prevI, prevJ, prevS, prevZ, proxyOf, PS, PZ, reflect, reflect, reflect6, setB, SETB, setC, SETC, setCost, SETD, setDescription, setF, SETF, setHeap, setI, SETI, setJ, SETJ, SETL, setL, setL, setParent, setParsePriority, setProxyOf, setS, SETS, setTester, setZ, SETZ, SForProxy, tester, toJavaCode, VForProxy, voidReflect, ZForProxy |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.awt.image.BufferedImage image
| Constructor Detail |
|---|
public Pixels2d()
| Method Detail |
|---|
public double DForProxy()
CS
DForProxy in class DefaultCSpublic int PI(int index)
PI in class CSCS.PD(int)public double PD(int index)
CS
PD in class CSpublic CS P(int index)
DefaultCS
P in class DefaultCSindex - range 0 (or neg?) to countP()-1 inclusiveCS.heap()public java.lang.Object LForProxy(java.lang.Class c)
DefaultCS
LForProxy in class DefaultCSexecProxy(),
setExecProxy(CS)
public java.lang.Object LForProxy(int start,
java.lang.Class c,
int size)
DefaultCS
LForProxy in class DefaultCSCS.L(int,Class,int)public boolean setL(java.lang.Object o)
CS
setL in class DefaultCSpublic java.lang.String keyword()
DefaultCS
keyword in class DefaultCSCS.parent(),
CS.newInstance(),
CS.name()public int countP()
countP in class DefaultCSpublic int minP()
minP in class DefaultCSpublic static void eraseAlpha(int[] rgb)
public static int eraseAlpha(int rgb)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||