summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/trinitydesktop/qt/TQImage.java
blob: 26fe08246ba011b342a0a9ce2e071b9eed4a155b (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.trinitydesktop.qt;

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

public class TQImage implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected TQImage(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 TQImage() {
		newTQImage();
	}
	private native void newTQImage();
	public TQImage(int width, int height, int depth, int numColors, int bitOrder) {
		newTQImage(width,height,depth,numColors,bitOrder);
	}
	private native void newTQImage(int width, int height, int depth, int numColors, int bitOrder);
	public TQImage(int width, int height, int depth, int numColors) {
		newTQImage(width,height,depth,numColors);
	}
	private native void newTQImage(int width, int height, int depth, int numColors);
	public TQImage(int width, int height, int depth) {
		newTQImage(width,height,depth);
	}
	private native void newTQImage(int width, int height, int depth);
	public TQImage(TQSize arg1, int depth, int numColors, int bitOrder) {
		newTQImage(arg1,depth,numColors,bitOrder);
	}
	private native void newTQImage(TQSize arg1, int depth, int numColors, int bitOrder);
	public TQImage(TQSize arg1, int depth, int numColors) {
		newTQImage(arg1,depth,numColors);
	}
	private native void newTQImage(TQSize arg1, int depth, int numColors);
	public TQImage(TQSize arg1, int depth) {
		newTQImage(arg1,depth);
	}
	private native void newTQImage(TQSize arg1, int depth);
	public TQImage(String fileName, String format) {
		newTQImage(fileName,format);
	}
	private native void newTQImage(String fileName, String format);
	public TQImage(String fileName) {
		newTQImage(fileName);
	}
	private native void newTQImage(String fileName);
	// TQImage* TQImage(const char** arg1); >>>> NOT CONVERTED
	public TQImage(byte[] data) {
		newTQImage(data);
	}
	private native void newTQImage(byte[] data);
	public TQImage(char[] data, int w, int h, int depth, int[] colortable, int numColors, int bitOrder) {
		newTQImage(data,w,h,depth,colortable,numColors,bitOrder);
	}
	private native void newTQImage(char[] data, int w, int h, int depth, int[] colortable, int numColors, int bitOrder);
	public TQImage(TQImage arg1) {
		newTQImage(arg1);
	}
	private native void newTQImage(TQImage arg1);
	public native boolean op_equals(TQImage arg1);
	public native boolean op_not_equals(TQImage arg1);
	public native void detach();
	public native TQImage copy();
	public native TQImage copy(int x, int y, int w, int h, int conversion_flags);
	public native TQImage copy(int x, int y, int w, int h);
	public native TQImage copy(TQRect arg1);
	public native boolean isNull();
	public native int width();
	public native int height();
	public native TQSize size();
	public native TQRect 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(TQSize arg1, int depth, int numColors, int bitOrder);
	public native boolean create(TQSize arg1, int depth, int numColors);
	public native boolean create(TQSize 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 TQImage convertDepth(int arg1);
	public native TQImage convertDepthWithPalette(int arg1, int[] p, int pc, int cf);
	public native TQImage convertDepthWithPalette(int arg1, int[] p, int pc);
	public native TQImage convertDepth(int arg1, int conversion_flags);
	public native TQImage convertBitOrder(int arg1);
	public native TQImage smoothScale(int w, int h, int mode);
	public native TQImage smoothScale(int w, int h);
	public native TQImage smoothScale(TQSize s, int mode);
	public native TQImage smoothScale(TQSize s);
	public native TQImage scale(int w, int h, int mode);
	public native TQImage scale(int w, int h);
	public native TQImage scale(TQSize s, int mode);
	public native TQImage scale(TQSize s);
	public native TQImage scaleWidth(int w);
	public native TQImage scaleHeight(int h);
	public native Object xForm(TQWMatrix matrix);
	public native TQImage createAlphaMask(int conversion_flags);
	public native TQImage createAlphaMask();
	public native TQImage createHeuristicMask(boolean clipTight);
	public native TQImage createHeuristicMask();
	public native TQImage mirror();
	public native TQImage mirror(boolean horizontally, boolean vertically);
	public native TQImage 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(TQIODeviceInterface device, String format, int quality);
	public native boolean save(TQIODeviceInterface 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 TQPoint offset();
	public native void setOffset(TQPoint arg1);
	// TQValueList<TQImageTextKeyLang> 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(TQImageTextKeyLang arg1);
	public native void setText(String key, String lang, String arg3);
	public static native TQImage 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();
}