summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QImage.java
blob: 9d223779797eaaaab1bf1ac87cb3715508a2dac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;
import java.util.ArrayList;

public class QImage implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected QImage(Class dummy){}

	public static final int IgnoreEndian = 0;
	public static final int BigEndian = 1;
	public static final int LittleEndian = 2;

	public static final int ScaleFree = 0;
	public static final int ScaleMin = 1;
	public static final int ScaleMax = 2;

	public QImage() {
		newQImage();
	}
	private native void newQImage();
	public QImage(int width, int height, int depth, int numColors, int bitOrder) {
		newQImage(width,height,depth,numColors,bitOrder);
	}
	private native void newQImage(int width, int height, int depth, int numColors, int bitOrder);
	public QImage(int width, int height, int depth, int numColors) {
		newQImage(width,height,depth,numColors);
	}
	private native void newQImage(int width, int height, int depth, int numColors);
	public QImage(int width, int height, int depth) {
		newQImage(width,height,depth);
	}
	private native void newQImage(int width, int height, int depth);
	public QImage(QSize arg1, int depth, int numColors, int bitOrder) {
		newQImage(arg1,depth,numColors,bitOrder);
	}
	private native void newQImage(QSize arg1, int depth, int numColors, int bitOrder);
	public QImage(QSize arg1, int depth, int numColors) {
		newQImage(arg1,depth,numColors);
	}
	private native void newQImage(QSize arg1, int depth, int numColors);
	public QImage(QSize arg1, int depth) {
		newQImage(arg1,depth);
	}
	private native void newQImage(QSize arg1, int depth);
	public QImage(String fileName, String format) {
		newQImage(fileName,format);
	}
	private native void newQImage(String fileName, String format);
	public QImage(String fileName) {
		newQImage(fileName);
	}
	private native void newQImage(String fileName);
	// QImage* QImage(const char** arg1); >>>> NOT CONVERTED
	public QImage(byte[] data) {
		newQImage(data);
	}
	private native void newQImage(byte[] data);
	public QImage(char[] data, int w, int h, int depth, int[] colortable, int numColors, int bitOrder) {
		newQImage(data,w,h,depth,colortable,numColors,bitOrder);
	}
	private native void newQImage(char[] data, int w, int h, int depth, int[] colortable, int numColors, int bitOrder);
	public QImage(QImage arg1) {
		newQImage(arg1);
	}
	private native void newQImage(QImage arg1);
	public native boolean op_equals(QImage arg1);
	public native boolean op_not_equals(QImage arg1);
	public native void detach();
	public native QImage copy();
	public native QImage copy(int x, int y, int w, int h, int conversion_flags);
	public native QImage copy(int x, int y, int w, int h);
	public native QImage copy(QRect arg1);
	public native boolean isNull();
	public native int width();
	public native int height();
	public native QSize size();
	public native QRect rect();
	public native int depth();
	public native int numColors();
	public native int bitOrder();
	public native int color(int i);
	public native void setColor(int i, int c);
	public native void setNumColors(int arg1);
	public native boolean hasAlphaBuffer();
	public native void setAlphaBuffer(boolean arg1);
	public native boolean allGray();
	public native boolean isGrayscale();
	public native byte[] bits();
	public native byte[] scanLine(int arg1);
	public native ArrayList jumpTable();
	public native int[] colorTable();
	public native int numBytes();
	public native int bytesPerLine();
	public native boolean create(int width, int height, int depth, int numColors, int bitOrder);
	public native boolean create(int width, int height, int depth, int numColors);
	public native boolean create(int width, int height, int depth);
	public native boolean create(QSize arg1, int depth, int numColors, int bitOrder);
	public native boolean create(QSize arg1, int depth, int numColors);
	public native boolean create(QSize arg1, int depth);
	public native void reset();
	public native void fill(int pixel);
	public native void invertPixels(boolean invertAlpha);
	public native void invertPixels();
	public native QImage convertDepth(int arg1);
	public native QImage convertDepthWithPalette(int arg1, int[] p, int pc, int cf);
	public native QImage convertDepthWithPalette(int arg1, int[] p, int pc);
	public native QImage convertDepth(int arg1, int conversion_flags);
	public native QImage convertBitOrder(int arg1);
	public native QImage smoothScale(int w, int h, int mode);
	public native QImage smoothScale(int w, int h);
	public native QImage smoothScale(QSize s, int mode);
	public native QImage smoothScale(QSize s);
	public native QImage scale(int w, int h, int mode);
	public native QImage scale(int w, int h);
	public native QImage scale(QSize s, int mode);
	public native QImage scale(QSize s);
	public native QImage scaleWidth(int w);
	public native QImage scaleHeight(int h);
	public native Object xForm(QWMatrix matrix);
	public native QImage createAlphaMask(int conversion_flags);
	public native QImage createAlphaMask();
	public native QImage createHeuristicMask(boolean clipTight);
	public native QImage createHeuristicMask();
	public native QImage mirror();
	public native QImage mirror(boolean horizontally, boolean vertically);
	public native QImage swapRGB();
	public native boolean load(String fileName, String format);
	public native boolean load(String fileName);
	public native boolean loadFromData(char[] buf, int len, String format);
	public native boolean loadFromData(char[] buf, int len);
	public native boolean loadFromData(byte[] data, String format);
	public native boolean loadFromData(byte[] data);
	public native boolean save(String fileName, String format, int quality);
	public native boolean save(String fileName, String format);
	public native boolean save(QIODeviceInterface device, String format, int quality);
	public native boolean save(QIODeviceInterface device, String format);
	public native boolean valid(int x, int y);
	public native int pixelIndex(int x, int y);
	public native int pixel(int x, int y);
	public native void setPixel(int x, int y, int index_or_rgb);
	public native int dotsPerMeterX();
	public native int dotsPerMeterY();
	public native void setDotsPerMeterX(int arg1);
	public native void setDotsPerMeterY(int arg1);
	public native QPoint offset();
	public native void setOffset(QPoint arg1);
	// QValueList<QImageTextKeyLang> textList(); >>>> NOT CONVERTED
	public native ArrayList textLanguages();
	public native ArrayList textKeys();
	public native String text(String key, String lang);
	public native String text(String key);
	public native String text(QImageTextKeyLang arg1);
	public native void setText(String key, String lang, String arg3);
	public static native QImage fromMimeSource(String abs_name);
	public static native int systemBitOrder();
	public static native int systemByteOrder();
	public static native String imageFormat(String fileName);
	public static native ArrayList inputFormats();
	public static native ArrayList outputFormats();
	public static native ArrayList inputFormatList();
	public static native ArrayList outputFormatList();
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}