public class ImageBuffer extends Object
Name: ImageBuffer
Description: Buffer für Bilder.
Copyright: Copyright (c) 2012, 2014, 2016, 2017, 2021
Company: >StA-Soft<
| Modifier and Type | Class and Description |
|---|---|
class |
ImageBuffer.OpClearRect
Operation: Rechteck löschen (Breite/Höhe).
|
class |
ImageBuffer.OpCopyImage
Operation: Bildinhalt kopieren.
|
class |
ImageBuffer.OpDrawImage
Operation: Bild zeichnen.
|
class |
ImageBuffer.OpDrawImageBuffer
Operation: Image-Buffer-Inhalt zeichnen.
|
class |
ImageBuffer.OpDrawImageCenter
Operation: Bild zentriert zeichnen.
|
class |
ImageBuffer.OpDrawImageZoom
Operation: Bild gezoomt zeichnen (Breite/Höhe).
|
class |
ImageBuffer.OpDrawLine
Operation: Linie zeichnen.
|
class |
ImageBuffer.OpDrawOval
Operation: Oval zeichnen.
|
class |
ImageBuffer.OpDrawPolygon
Operation: Polygon zeichnen.
|
class |
ImageBuffer.OpDrawRectWH
Operation: Rechteck zeichnen (Breite/Höhe).
|
class |
ImageBuffer.OpDrawShadowWH
Operation: Schatten zeichnen (Breite/Höhe).
|
class |
ImageBuffer.Operation
Abstrakte Basisklasse für Operationen.
|
class |
ImageBuffer.OpFillOval
Operation: Oval füllen.
|
class |
ImageBuffer.OpFillPolygon
Operation: Polygon füllen.
|
class |
ImageBuffer.OpFillRect
Operation: Rechteck füllen (Breite/Höhe).
|
class |
ImageBuffer.OpPrintAt
Operation: Text schreiben.
|
class |
ImageBuffer.OpSetBackground
Operation: Hintergrundfarbe setzen.
|
class |
ImageBuffer.OpSetColor
Operation: (Vordergrund-) Farbe setzen.
|
| Constructor and Description |
|---|
ImageBuffer()
Standard-Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearRect(int x,
int y,
int dx,
int dy)
Rechteck löschen.
|
void |
copyImage(int x1,
int y1,
int x2,
int y2,
int x,
int y)
Bildbereich kopieren.
|
void |
copyImageWH(int x1,
int y1,
int w,
int h,
int x,
int y)
Bildbereich kopieren.
|
void |
drawImage(Image img,
int x,
int y)
Bild zeichnen.
|
void |
drawImageBuffer(ImageBuffer ib,
int x,
int y)
Image-Buffer zeichnen.
|
void |
drawImageCenter(Image img,
int x,
int y,
int dx,
int dy)
Bild zentriert zeichnen.
|
void |
drawImageZoom(Image img,
int x,
int y,
int dx,
int dy)
Bild gezoomt zeichnen.
|
void |
drawLine(int x1,
int y1,
int x2,
int y2)
Linie zeichnen.
|
void |
drawOval(int x,
int y,
int dx,
int dy)
Oval zeichnen.
|
void |
drawPolygon(int[] xx,
int[] yy,
int n)
Polygon zeichnen.
|
void |
drawRectWH(int x,
int y,
int width,
int height)
Rechteck zeichnen.
|
void |
drawShadowWH(int x,
int y,
int width,
int height)
Schatten zeichnen.
|
void |
fillOval(int x,
int y,
int dx,
int dy)
Oval füllen.
|
void |
fillPolygon(int[] xx,
int[] yy,
int n)
Polygon füllen.
|
void |
fillRect(int x,
int y,
int dx,
int dy)
Rechteck füllen.
|
Color |
getColor()
(Vordergrund-) Farbe ermitteln.
|
int |
getFontSize()
Zeichensatz-/Schriftgröße ermitteln.
|
int |
getHeight()
Zeilenhöhe ermitteln.
|
BufferedImage |
getImage()
Bild erzeugen, Inhalt dieses Image-Buffers in den Image-Renderer übertragen und Bild zurückliefern.
|
BufferedImage |
getImage(int imagetype)
Bild erzeugen, Inhalt dieses Image-Buffers in den Image-Renderer übertragen und Bild zurückliefern.
|
int |
getWidth(String text)
Textbreite ermitteln.
|
static void |
main(String[] args)
Main-Methode zu Test-Zwecken.
|
void |
newImage(int sizex,
int sizey)
Neues Bild bzw. neue Bildgröße festlegen.
|
void |
newImage(int sizex,
int sizey,
Color c)
Neues Bild mit Bildgröße und Hintergrundfarbe.
|
void |
printat(int x,
int y,
String text)
Text schreiben.
|
protected void |
renderImage(ImageRenderer ir,
int x,
int y)
Inhalt dieses Image-Buffers in den Image-Renderer an bestimmte Position übertragen.
|
void |
setBackground(Color c)
Hintergrundfarbe setzen.
|
void |
setColor(Color c)
(Vordergrund-) Farbe setzen.
|
public void newImage(int sizex,
int sizey)
sizex - Breitesizey - Höhepublic void newImage(int sizex,
int sizey,
Color c)
sizex - Breitesizey - Höhec - Hintergrundfarbepublic void setColor(Color c)
c - (Vordergrund-) Farbepublic Color getColor()
public void setBackground(Color c)
c - Hintergrundfarbepublic void drawLine(int x1,
int y1,
int x2,
int y2)
x1 - X1y1 - Y1x2 - X2y2 - Y2public void drawRectWH(int x,
int y,
int width,
int height)
x - Xy - Ywidth - Breiteheight - Höhepublic void fillRect(int x,
int y,
int dx,
int dy)
x - Xy - Ydx - Breitedy - Höhepublic void clearRect(int x,
int y,
int dx,
int dy)
x - Xy - Ydx - Breitedy - Höhepublic void drawPolygon(int[] xx,
int[] yy,
int n)
xx - X-Koordinatenyy - Y-Koordinatenn - Anzahl der Punktepublic void fillPolygon(int[] xx,
int[] yy,
int n)
xx - X-Koordinatenyy - Y-Koordinatenn - Anzahl der Punktepublic void drawOval(int x,
int y,
int dx,
int dy)
x - Yy - Ydx - Breitedy - Höhepublic void fillOval(int x,
int y,
int dx,
int dy)
x - Yy - Ydx - Breitedy - Höhepublic void drawImage(Image img, int x, int y)
img - Bildx - Xy - Ypublic void drawImageCenter(Image img, int x, int y, int dx, int dy)
img - Bildx - Xy - Ydx - Breitedy - Höhepublic void drawImageZoom(Image img, int x, int y, int dx, int dy)
img - Bildx - Xy - Ydx - Breitedy - Höhepublic void drawImageBuffer(ImageBuffer ib, int x, int y)
ib - Image-Bufferx - Xy - Ypublic void copyImage(int x1,
int y1,
int x2,
int y2,
int x,
int y)
x1 - X1y1 - Y1x2 - X2y2 - Y2x - X (Ziel)y - Y (Ziel)public void copyImageWH(int x1,
int y1,
int w,
int h,
int x,
int y)
x1 - X1y1 - Y1w - Breiteh - Höhex - X (Ziel)y - Y (Ziel)public void printat(int x,
int y,
String text)
x - Xy - Ytext - Textpublic void drawShadowWH(int x,
int y,
int width,
int height)
x - Xy - Ywidth - Breiteheight - Höhepublic int getFontSize()
public int getWidth(String text)
text - Textpublic int getHeight()
protected void renderImage(ImageRenderer ir, int x, int y)
ir - Image-Rendererx - Xy - Ypublic BufferedImage getImage(int imagetype)
imagetype - Bildtyppublic BufferedImage getImage()
public static void main(String[] args)
args - KommandozeilenargumenteCopyright © 2005-2023–2024 >StA-Soft<. All rights reserved.