All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QBitmap Maven / Gradle / Ivy

There is a newer version: 6.8.1
Show newest version
package io.qt.gui;

import io.qt.*;


/**
 * 

Monochrome (1-bit depth) pixmaps

*

Java wrapper for Qt class QBitmap

*/ public class QBitmap extends io.qt.gui.QPixmap implements java.lang.Cloneable { /** *

See QBitmap::QBitmap()

*/ public QBitmap(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QBitmap instance); /** *

See QBitmap::QBitmap(QBitmap)

*/ public QBitmap(io.qt.gui.@NonNull QBitmap other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QBitmap instance, io.qt.gui.QBitmap other); /** *

See QBitmap::QBitmap(QPixmap)

*/ public QBitmap(io.qt.gui.@NonNull QPixmap arg__1){ super((QPrivateConstructor)null); initialize_native(this, arg__1); } private native static void initialize_native(QBitmap instance, io.qt.gui.QPixmap arg__1); /** *

See QBitmap::QBitmap(QSize)

*/ public QBitmap(io.qt.core.@NonNull 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); /** *

See QBitmap::QBitmap(QString,const char*)

*/ public QBitmap(java.lang.@NonNull String fileName, java.lang.@Nullable 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); /** *

See QBitmap::QBitmap(int,int)

*/ 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()

*/ @QtUninvokable public final void clear(){ clear_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void clear_native(long __this__nativeId); /** *

See QBitmap::swap(QBitmap&)

*/ @QtUninvokable public final void swap(io.qt.gui.@StrictNonNull 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)); } @QtUninvokable private native void swap_native_ref_QBitmap(long __this__nativeId, long other); /** *

See QBitmap::transformed(QTransform)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QBitmap transformed(io.qt.gui.@NonNull QTransform matrix){ return transformed_native_cref_QTransform_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(matrix)); } @QtUninvokable private native io.qt.gui.QBitmap transformed_native_cref_QTransform_constfct(long __this__nativeId, long matrix); /** *

See QBitmap::fromData(QSize,const uchar*,QImage::Format)

*/ public static io.qt.gui.@NonNull QBitmap fromData(io.qt.core.@NonNull QSize size, byte[] bits, io.qt.gui.QImage.@NonNull Format monoFormat){ return fromData_native_cref_QSize_const_uchar_ptr_QImage_Format(QtJambi_LibraryUtilities.internal.checkedNativeId(size), bits, monoFormat.value()); } private native static io.qt.gui.QBitmap fromData_native_cref_QSize_const_uchar_ptr_QImage_Format(long size, byte[] bits, int monoFormat); /** *

See QPixmap::fromImage(QImage,Qt::ImageConversionFlags)

*/ public static io.qt.gui.@NonNull QBitmap fromImage(io.qt.gui.@NonNull QImage image, io.qt.core.Qt.@NonNull ImageConversionFlags flags){ return fromImage_native_cref_QImage_Qt_ImageConversionFlags(QtJambi_LibraryUtilities.internal.checkedNativeId(image), flags.value()); } private native static io.qt.gui.QBitmap fromImage_native_cref_QImage_Qt_ImageConversionFlags(long image, int flags); /** *

See QBitmap::fromPixmap(QPixmap)

*

This function was introduced in Qt 6.0.

*/ public static io.qt.gui.@NonNull QBitmap fromPixmap(io.qt.gui.@NonNull 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. * @hidden */ @NativeAccess protected QBitmap(QPrivateConstructor p) { super(p); } /** *

Creates and returns a copy of this object.

See QBitmap::QBitmap(QBitmap)

*/ @QtUninvokable @Override public QBitmap clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QBitmap clone_native(long __this_nativeId); /** *

Overloaded constructor for {@link #QBitmap(java.lang.String, java.lang.String)} * with format = null.

*/ public QBitmap(java.lang.@NonNull String fileName) { this(fileName, (java.lang.String)null); } /** *

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.@NonNull QBitmap fromData(io.qt.core.@NonNull QSize size, byte[] bits) { return fromData(size, bits, io.qt.gui.QImage.Format.Format_MonoLSB); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy