io.qt.gui.QImageReader Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
/**
* Format independent interface for reading images from files or other devices
* Java wrapper for Qt class QImageReader
*/
public class QImageReader extends io.qt.QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
@io.qt.QtPropertyMember(enabled=false)
private Object __rcDevice = null;
/**
* Java wrapper for Qt enum QImageReader::ImageReaderError
*/
public enum ImageReaderError implements io.qt.QtEnumerator {
UnknownError(0),
FileNotFoundError(1),
DeviceError(2),
UnsupportedFormatError(3),
InvalidDataError(4);
private ImageReaderError(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static ImageReaderError resolve(int value) {
switch (value) {
case 0: return UnknownError;
case 1: return FileNotFoundError;
case 2: return DeviceError;
case 3: return UnsupportedFormatError;
case 4: return InvalidDataError;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QImageReader::QImageReader()
*/
public QImageReader(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QImageReader instance);
/**
* Overloaded constructor for {@link #QImageReader(io.qt.core.QIODevice, io.qt.core.QByteArray)}
* with format = new io.qt.core.QByteArray()
.
*/
public QImageReader(io.qt.core.QIODevice device) {
this(device, new io.qt.core.QByteArray());
}
/**
* See QImageReader::QImageReader(QIODevice*,QByteArray)
*/
public QImageReader(io.qt.core.QIODevice device, io.qt.core.QByteArray format){
super((QPrivateConstructor)null);
initialize_native(this, device, format);
}
private native static void initialize_native(QImageReader instance, io.qt.core.QIODevice device, io.qt.core.QByteArray format);
/**
* Overloaded constructor for {@link #QImageReader(java.lang.String, io.qt.core.QByteArray)}
* with format = new io.qt.core.QByteArray()
.
*/
public QImageReader(java.lang.String fileName) {
this(fileName, new io.qt.core.QByteArray());
}
/**
* See QImageReader::QImageReader(QString,QByteArray)
*/
public QImageReader(java.lang.String fileName, io.qt.core.QByteArray format){
super((QPrivateConstructor)null);
initialize_native(this, fileName, format);
}
private native static void initialize_native(QImageReader instance, java.lang.String fileName, io.qt.core.QByteArray format);
/**
* See QImageReader::autoDetectImageFormat()const
*/
@io.qt.QtUninvokable
public final boolean autoDetectImageFormat(){
return autoDetectImageFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean autoDetectImageFormat_native_constfct(long __this__nativeId);
/**
* See QImageReader::autoTransform()const
*/
@io.qt.QtUninvokable
public final boolean autoTransform(){
return autoTransform_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean autoTransform_native_constfct(long __this__nativeId);
/**
* See QImageReader::backgroundColor()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QColor backgroundColor(){
return backgroundColor_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QColor backgroundColor_native_constfct(long __this__nativeId);
/**
* See QImageReader::canRead()const
*/
@io.qt.QtUninvokable
public final boolean canRead(){
return canRead_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean canRead_native_constfct(long __this__nativeId);
/**
* See QImageReader::clipRect()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QRect clipRect(){
return clipRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QRect clipRect_native_constfct(long __this__nativeId);
/**
* See QImageReader::currentImageNumber()const
*/
@io.qt.QtUninvokable
public final int currentImageNumber(){
return currentImageNumber_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int currentImageNumber_native_constfct(long __this__nativeId);
/**
* See QImageReader::currentImageRect()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QRect currentImageRect(){
return currentImageRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QRect currentImageRect_native_constfct(long __this__nativeId);
/**
* See QImageReader::decideFormatFromContent()const
*/
@io.qt.QtUninvokable
public final boolean decideFormatFromContent(){
return decideFormatFromContent_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean decideFormatFromContent_native_constfct(long __this__nativeId);
/**
* See QImageReader::device()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QIODevice device(){
return device_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QIODevice device_native_constfct(long __this__nativeId);
/**
* See QImageReader::error()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QImageReader.ImageReaderError error(){
return io.qt.gui.QImageReader.ImageReaderError.resolve(error_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int error_native_constfct(long __this__nativeId);
/**
* See QImageReader::errorString()const
*/
@io.qt.QtUninvokable
public final java.lang.String errorString(){
return errorString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String errorString_native_constfct(long __this__nativeId);
/**
* See QImageReader::fileName()const
*/
@io.qt.QtUninvokable
public final java.lang.String fileName(){
return fileName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String fileName_native_constfct(long __this__nativeId);
/**
* See QImageReader::format()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QByteArray format(){
return format_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QByteArray format_native_constfct(long __this__nativeId);
/**
* See QImageReader::imageCount()const
*/
@io.qt.QtUninvokable
public final int imageCount(){
return imageCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int imageCount_native_constfct(long __this__nativeId);
/**
* See QImageReader::imageFormat()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QImage.Format imageFormat(){
return io.qt.gui.QImage.Format.resolve(imageFormat_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int imageFormat_native_constfct(long __this__nativeId);
/**
* See QImageReader::jumpToImage(int)
*/
@io.qt.QtUninvokable
public final boolean jumpToImage(int imageNumber){
return jumpToImage_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), imageNumber);
}
@io.qt.QtUninvokable
private native boolean jumpToImage_native_int(long __this__nativeId, int imageNumber);
/**
* See QImageReader::jumpToNextImage()
*/
@io.qt.QtUninvokable
public final boolean jumpToNextImage(){
return jumpToNextImage_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean jumpToNextImage_native(long __this__nativeId);
/**
* See QImageReader::loopCount()const
*/
@io.qt.QtUninvokable
public final int loopCount(){
return loopCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int loopCount_native_constfct(long __this__nativeId);
/**
* See QImageReader::nextImageDelay()const
*/
@io.qt.QtUninvokable
public final int nextImageDelay(){
return nextImageDelay_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int nextImageDelay_native_constfct(long __this__nativeId);
/**
* See QImageReader::quality()const
*/
@io.qt.QtUninvokable
public final int quality(){
return quality_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native int quality_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.gui.QImage read(){
return read_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QImage read_native(long __this__nativeId);
/**
* See QImageReader::scaledClipRect()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QRect scaledClipRect(){
return scaledClipRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QRect scaledClipRect_native_constfct(long __this__nativeId);
/**
* See QImageReader::scaledSize()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize scaledSize(){
return scaledSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize scaledSize_native_constfct(long __this__nativeId);
/**
* See QImageReader::setAutoDetectImageFormat(bool)
*/
@io.qt.QtUninvokable
public final void setAutoDetectImageFormat(boolean enabled){
setAutoDetectImageFormat_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@io.qt.QtUninvokable
private native void setAutoDetectImageFormat_native_bool(long __this__nativeId, boolean enabled);
/**
* See QImageReader::setAutoTransform(bool)
*/
@io.qt.QtUninvokable
public final void setAutoTransform(boolean enabled){
setAutoTransform_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enabled);
}
@io.qt.QtUninvokable
private native void setAutoTransform_native_bool(long __this__nativeId, boolean enabled);
/**
* See QImageReader::setBackgroundColor(QColor)
*/
@io.qt.QtUninvokable
public final void setBackgroundColor(io.qt.gui.QColor color){
setBackgroundColor_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(color));
}
@io.qt.QtUninvokable
private native void setBackgroundColor_native_cref_QColor(long __this__nativeId, long color);
/**
* See QImageReader::setClipRect(QRect)
*/
@io.qt.QtUninvokable
public final void setClipRect(io.qt.core.QRect rect){
setClipRect_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@io.qt.QtUninvokable
private native void setClipRect_native_cref_QRect(long __this__nativeId, long rect);
/**
* See QImageReader::setDecideFormatFromContent(bool)
*/
@io.qt.QtUninvokable
public final void setDecideFormatFromContent(boolean ignored){
setDecideFormatFromContent_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), ignored);
}
@io.qt.QtUninvokable
private native void setDecideFormatFromContent_native_bool(long __this__nativeId, boolean ignored);
/**
* See QImageReader::setDevice(QIODevice*)
*/
@io.qt.QtUninvokable
public final void setDevice(io.qt.core.QIODevice device){
setDevice_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(device));
__rcDevice = device;
}
@io.qt.QtUninvokable
private native void setDevice_native_QIODevice_ptr(long __this__nativeId, long device);
/**
* See QImageReader::setFileName(QString)
*/
@io.qt.QtUninvokable
public final void setFileName(java.lang.String fileName){
setFileName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName);
}
@io.qt.QtUninvokable
private native void setFileName_native_cref_QString(long __this__nativeId, java.lang.String fileName);
/**
* See QImageReader::setFormat(QByteArray)
*/
@io.qt.QtUninvokable
public final void setFormat(io.qt.core.QByteArray format){
setFormat_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format));
}
@io.qt.QtUninvokable
private native void setFormat_native_cref_QByteArray(long __this__nativeId, long format);
/**
* See QImageReader::setQuality(int)
*/
@io.qt.QtUninvokable
public final void setQuality(int quality){
setQuality_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), quality);
}
@io.qt.QtUninvokable
private native void setQuality_native_int(long __this__nativeId, int quality);
/**
* See QImageReader::setScaledClipRect(QRect)
*/
@io.qt.QtUninvokable
public final void setScaledClipRect(io.qt.core.QRect rect){
setScaledClipRect_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@io.qt.QtUninvokable
private native void setScaledClipRect_native_cref_QRect(long __this__nativeId, long rect);
/**
* See QImageReader::setScaledSize(QSize)
*/
@io.qt.QtUninvokable
public final void setScaledSize(io.qt.core.QSize size){
setScaledSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size));
}
@io.qt.QtUninvokable
private native void setScaledSize_native_cref_QSize(long __this__nativeId, long size);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize size(){
return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QSize size_native_constfct(long __this__nativeId);
/**
* See QImageReader::subType()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QByteArray subType(){
return subType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QByteArray subType_native_constfct(long __this__nativeId);
/**
* See QImageReader::supportedSubTypes()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList supportedSubTypes(){
return supportedSubTypes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QList supportedSubTypes_native_constfct(long __this__nativeId);
/**
* See QImageReader::supportsAnimation()const
*/
@io.qt.QtUninvokable
public final boolean supportsAnimation(){
return supportsAnimation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean supportsAnimation_native_constfct(long __this__nativeId);
/**
* See QImageReader::supportsOption(QImageIOHandler::ImageOption)const
*/
@io.qt.QtUninvokable
public final boolean supportsOption(io.qt.gui.QImageIOHandler.ImageOption option){
return supportsOption_native_QImageIOHandler_ImageOption_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option.value());
}
@io.qt.QtUninvokable
private native boolean supportsOption_native_QImageIOHandler_ImageOption_constfct(long __this__nativeId, int option);
/**
* See QImageReader::text(QString)const
*/
@io.qt.QtUninvokable
public final java.lang.String text(java.lang.String key){
return text_native_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), key);
}
@io.qt.QtUninvokable
private native java.lang.String text_native_cref_QString_constfct(long __this__nativeId, java.lang.String key);
/**
* See QImageReader::textKeys()const
*/
@io.qt.QtUninvokable
public final io.qt.core.QStringList textKeys(){
return textKeys_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.core.QStringList textKeys_native_constfct(long __this__nativeId);
/**
* See QImageReader::transformation()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QImageIOHandler.Transformations transformation(){
return new io.qt.gui.QImageIOHandler.Transformations(transformation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int transformation_native_constfct(long __this__nativeId);
/**
* See QImageReader::allocationLimit()
*/
public native static int allocationLimit();
/**
* See QImageReader::imageFormat(QIODevice*)
*/
public static io.qt.core.QByteArray imageFormat(io.qt.core.QIODevice device){
return imageFormat_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(device));
}
private native static io.qt.core.QByteArray imageFormat_native_QIODevice_ptr(long device);
/**
* See QImageReader::imageFormat(QString)
*/
public native static io.qt.core.QByteArray imageFormat(java.lang.String fileName);
/**
* See QImageReader::imageFormatsForMimeType(QByteArray)
*/
public static io.qt.core.QList imageFormatsForMimeType(io.qt.core.QByteArray mimeType){
return imageFormatsForMimeType_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(mimeType));
}
private native static io.qt.core.QList imageFormatsForMimeType_native_cref_QByteArray(long mimeType);
/**
* See QImageReader::setAllocationLimit(int)
*/
public native static void setAllocationLimit(int mbLimit);
/**
* See QImageReader::supportedImageFormats()
*/
public native static io.qt.core.QList supportedImageFormats();
/**
* See QImageReader::supportedMimeTypes()
*/
public native static io.qt.core.QList supportedMimeTypes();
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QImageReader(QPrivateConstructor p) { super(p); }
}