You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/qtjava/javalib/org/kde/qt/QImage.java

172 lines
7.2 KiB
Java

//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();
}