001 package coldfusion.image; 002 003 import java.awt.Color; 004 import java.awt.Graphics2D; 005 import java.awt.RenderingHints.Key; 006 import java.awt.image.BufferedImage; 007 008 import javax.servlet.jsp.PageContext; 009 010 import railo.runtime.type.Struct; 011 012 013 public interface Image { 014 015 016 public void addBorder(int arg0, String arg1, String arg2); 017 public void blur(int blurRadius); 018 public void brighten() ; 019 public void clearRect(int x, int y, int width, int height); 020 public Image copyArea(int srcX, int srcY, int width, int height, int destX,int destY); 021 public Image copyArea(int srcX, int srcY, int width, int height); 022 public void crop(float x, float y, float width, float height); 023 public void draw3DRect(int x, int y, int width, int height, boolean raised,boolean filled); 024 public void drawArc(int x, int y, int width, int height, int startAngle, 025 int arcAngle, boolean filled); 026 public void drawCubicCurve(double x1, double y1, double ctrlx1, 027 double ctrly1, double ctrlx2, double ctrly2, double x2, double y2); 028 public void drawLine(int x1, int y1, int x2, int y2); 029 public void drawLines(int[] xcoords, int[] ycoords, boolean isPolygon, 030 boolean filled); 031 public void drawOval(int x, int y, int width, int height, boolean filled); 032 public void drawPoint(int x, int y); 033 public void drawQuadraticCurve(double x1, double y1, double ctrlx, 034 double ctrly, double x2, double y2); 035 public void drawRect(int x, int y, int width, int height, boolean filled); 036 public void drawRoundRect(int x, int y, int width, int height, 037 int arcWidth, int arcHeight, boolean filled); 038 public void drawString(String arg0, int arg1, int arg2, Struct arg3); 039 public void flip(String transpose); 040 public String getBase64String(String formatName); 041 public Color getColor(String strColor); 042 public Graphics2D getCurrentGraphics(); 043 public BufferedImage getCurrentImage(); 044 public Struct getExifMetadata(PageContext arg0); 045 public String getExifTag(String tagname, PageContext pageContext); 046 public int getHeight(); 047 public byte[] getImageBytes(String arg0); 048 public Struct getIptcMetadata(PageContext arg0); 049 public String getIptcTag(String tagname, PageContext pageContext); 050 public String getSource(); 051 public int getWidth(); 052 public void grayscale(); 053 public Struct info(); 054 public void initializeMetadata(PageContext pc); 055 public void invert(); 056 public void overlay(Image img); 057 public void paste(Image img2, int x, int y); 058 public void readBase64(String arg0); 059 public void resize(String arg0, String arg1, String arg2, double arg3); 060 public void resize(String width, String height, String interpolation); 061 public void rotate(float arg0, float arg1, float arg2, String arg3); 062 public void rotateAxis(double theta, double x, double y); 063 public void rotateAxis(double theta); 064 public void scaleToFit(int fitSize); 065 public void scaleToFit(String arg0, String arg1, String arg2, double arg3); 066 public void scaleToFit(String fitWidth, String fitHeight, 067 String interpolation); 068 public void setAntiAliasing(String value); 069 public void setBackground(String color); 070 public void setColor(String color); 071 public void setDrawingStroke(float width, int cap, int joins, 072 float miterlimit, float[] dash, float dash_phase); 073 public void setDrawingStroke(Struct arg0); 074 public void setRenderingHint(Key hintKey, Object hintValue); 075 public void setTranparency(double percent); 076 public void setXorMode(String color); 077 public void sharpen(float gain); 078 public void sharpenEdge(); 079 public void shear(float arg0, String arg1, String arg2); 080 public void shearAxis(double shx, double shy); 081 public void translate(int arg0, int arg1, String arg2); 082 public void translateAxis(int x, int y); 083 public void write(String arg0, float arg1); 084 public void writeBase64(String arg0, String arg1, boolean arg2); 085 086 }