io.qt.gui.QBitmap Maven / Gradle / Ivy
The newest version!
package io.qt.gui;
/**
* Monochrome (1-bit depth) pixmaps
* Java wrapper for Qt class QBitmap
*/
public class QBitmap extends io.qt.gui.QPixmap
implements java.lang.Cloneable
{
/**
*
*/
public QBitmap(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QBitmap instance);
/**
* @deprecated Use fromPixmap instead.
*/
@Deprecated
public QBitmap(io.qt.gui.QPixmap arg__1){
super((QPrivateConstructor)null);
initialize_native(this, arg__1);
}
@Deprecated
private native static void initialize_native(QBitmap instance, io.qt.gui.QPixmap arg__1);
public QBitmap(io.qt.core.QSize arg__1){
super((QPrivateConstructor)null);
initialize_native(this, arg__1);
}
private native static void initialize_native(QBitmap instance, io.qt.core.QSize arg__1);
/**
* Overloaded constructor for {@link #QBitmap(java.lang.String, java.lang.String)}
* with format = null
.
*/
public QBitmap(java.lang.String fileName) {
this(fileName, (java.lang.String)null);
}
public QBitmap(java.lang.String fileName, java.lang.String format){
super((QPrivateConstructor)null);
initialize_native(this, fileName, format);
}
private native static void initialize_native(QBitmap instance, java.lang.String fileName, java.lang.String format);
/**
*
*/
public QBitmap(int w, int h){
super((QPrivateConstructor)null);
initialize_native(this, w, h);
}
private native static void initialize_native(QBitmap instance, int w, int h);
/**
* See QBitmap::clear()
*/
@io.qt.QtUninvokable
public final void clear(){
clear_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void clear_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final void swap(io.qt.gui.QBitmap other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QBitmap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void swap_native_ref_QBitmap(long __this__nativeId, long other);
/**
* See QBitmap::transformed(QTransform)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QBitmap transformed(io.qt.gui.QTransform matrix){
return transformed_native_cref_QTransform_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(matrix));
}
@io.qt.QtUninvokable
private native io.qt.gui.QBitmap transformed_native_cref_QTransform_constfct(long __this__nativeId, long matrix);
/**
* Overloaded function for {@link #fromData(io.qt.core.QSize, byte[], io.qt.gui.QImage.Format)}
* with monoFormat = io.qt.gui.QImage.Format.Format_MonoLSB
.
*/
public static io.qt.gui.QBitmap fromData(io.qt.core.QSize size, byte[] bits) {
return fromData(size, bits, io.qt.gui.QImage.Format.Format_MonoLSB);
}
/**
* See QBitmap::fromData(QSize,const uchar*,QImage::Format)
*/
public static io.qt.gui.QBitmap fromData(io.qt.core.QSize size, byte[] bits, io.qt.gui.QImage.Format monoFormat){
return fromData_native_cref_QSize_const_unsigned_char_ptr_QImage_Format(QtJambi_LibraryUtilities.internal.checkedNativeId(size), bits, monoFormat.value());
}
private native static io.qt.gui.QBitmap fromData_native_cref_QSize_const_unsigned_char_ptr_QImage_Format(long size, byte[] bits, int monoFormat);
/**
* See QPixmap::fromImage(QImage,Qt::ImageConversionFlags)
*/
public static io.qt.gui.QBitmap fromImage(io.qt.gui.QImage image, io.qt.core.Qt.ImageConversionFlags flags){
return fromImage_native_cref_QImage_QFlags_Qt_ImageConversionFlag_(QtJambi_LibraryUtilities.internal.checkedNativeId(image), flags.value());
}
private native static io.qt.gui.QBitmap fromImage_native_cref_QImage_QFlags_Qt_ImageConversionFlag_(long image, int flags);
/**
* See QBitmap::fromPixmap(QPixmap)
*/
public static io.qt.gui.QBitmap fromPixmap(io.qt.gui.QPixmap pixmap){
return fromPixmap_native_cref_QPixmap(QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap));
}
private native static io.qt.gui.QBitmap fromPixmap_native_cref_QPixmap(long pixmap);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QBitmap(QPrivateConstructor p) { super(p); }
@Override
public QBitmap clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QBitmap clone_native(long __this_nativeId);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy