Skip to main content

QImage

Struct QImage 

Source
pub struct QImage { /* private fields */ }
Expand description

C++ class: QImage.

Implementations§

Source§

impl QImage

Source

pub unsafe fn all_gray(&self) -> bool

Calls C++ function: bool QImage::allGray() const.

Source

pub unsafe fn alpha_channel(&self) -> CppBox<QImage>

Calls C++ function: QImage QImage::alphaChannel() const.

Source

pub unsafe fn apply_color_transform( &self, transform: impl CastInto<Ref<QColorTransform>>, )

Calls C++ function: void QImage::applyColorTransform(const QColorTransform& transform).

Source

pub unsafe fn bit_plane_count(&self) -> c_int

Calls C++ function: int QImage::bitPlaneCount() const.

Source

pub unsafe fn bits_mut(&self) -> *mut c_uchar

Calls C++ function: unsigned char* QImage::bits().

Source

pub unsafe fn bits(&self) -> *const c_uchar

Calls C++ function: const unsigned char* QImage::bits() const.

Source

pub unsafe fn byte_count(&self) -> c_int

Calls C++ function: int QImage::byteCount() const.

Source

pub unsafe fn bytes_per_line(&self) -> c_int

Calls C++ function: int QImage::bytesPerLine() const.

Source

pub unsafe fn cache_key(&self) -> c_longlong

Calls C++ function: long long QImage::cacheKey() const.

Source

pub unsafe fn color(&self, i: c_int) -> c_uint

Calls C++ function: unsigned int QImage::color(int i) const.

Source

pub unsafe fn color_count(&self) -> c_int

Calls C++ function: int QImage::colorCount() const.

Source

pub unsafe fn color_space(&self) -> CppBox<QColorSpace>

Calls C++ function: QColorSpace QImage::colorSpace() const.

Source

pub unsafe fn color_table(&self) -> CppBox<QVectorOfUint>

Calls C++ function: QVector<unsigned int> QImage::colorTable() const.

Source

pub unsafe fn const_bits(&self) -> *const c_uchar

Calls C++ function: const unsigned char* QImage::constBits() const.

Source

pub unsafe fn const_scan_line(&self, arg1: c_int) -> *const c_uchar

Calls C++ function: const unsigned char* QImage::constScanLine(int arg1) const.

Source

pub unsafe fn convert_to_2a( &self, f: Format, flags: QFlags<ImageConversionFlag>, )

Calls C++ function: void QImage::convertTo(QImage::Format f, QFlags<Qt::ImageConversionFlag> flags = …).

Source

pub unsafe fn convert_to_1a(&self, f: Format)

Calls C++ function: void QImage::convertTo(QImage::Format f).

Source

pub unsafe fn convert_to_color_space( &self, arg1: impl CastInto<Ref<QColorSpace>>, )

Calls C++ function: void QImage::convertToColorSpace(const QColorSpace& arg1).

Source

pub unsafe fn convert_to_format_format_q_flags_image_conversion_flag( &self, f: Format, flags: QFlags<ImageConversionFlag>, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::convertToFormat(QImage::Format f, QFlags<Qt::ImageConversionFlag> flags = …) const.

Source

pub unsafe fn convert_to_format_format_q_flags_image_conversion_flag_mut( &self, f: Format, flags: QFlags<ImageConversionFlag>, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::convertToFormat(QImage::Format f, QFlags<Qt::ImageConversionFlag> flags = …).

Source

pub unsafe fn convert_to_format_format_q_vector_of_uint_q_flags_image_conversion_flag( &self, f: Format, color_table: impl CastInto<Ref<QVectorOfUint>>, flags: QFlags<ImageConversionFlag>, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::convertToFormat(QImage::Format f, const QVector<unsigned int>& colorTable, QFlags<Qt::ImageConversionFlag> flags = …) const.

Source

pub unsafe fn convert_to_format_format(&self, f: Format) -> CppBox<QImage>

Calls C++ function: QImage QImage::convertToFormat(QImage::Format f) const.

Source

pub unsafe fn convert_to_format_format_mut(&self, f: Format) -> CppBox<QImage>

Calls C++ function: QImage QImage::convertToFormat(QImage::Format f).

Source

pub unsafe fn convert_to_format_format_q_vector_of_uint( &self, f: Format, color_table: impl CastInto<Ref<QVectorOfUint>>, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::convertToFormat(QImage::Format f, const QVector<unsigned int>& colorTable) const.

Source

pub unsafe fn converted_to_color_space( &self, arg1: impl CastInto<Ref<QColorSpace>>, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::convertedToColorSpace(const QColorSpace& arg1) const.

Source

pub unsafe fn copy_1a(&self, rect: impl CastInto<Ref<QRect>>) -> CppBox<QImage>

Calls C++ function: QImage QImage::copy(const QRect& rect = …) const.

Source

pub unsafe fn copy_4a( &self, x: c_int, y: c_int, w: c_int, h: c_int, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::copy(int x, int y, int w, int h) const.

Source

pub unsafe fn copy_0a(&self) -> CppBox<QImage>

Calls C++ function: QImage QImage::copy() const.

Source

pub unsafe fn copy_from(&self, arg1: impl CastInto<Ref<QImage>>) -> Ref<QImage>

Calls C++ function: QImage& QImage::operator=(const QImage& arg1).

Source

pub unsafe fn create_alpha_mask_1a( &self, flags: QFlags<ImageConversionFlag>, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::createAlphaMask(QFlags<Qt::ImageConversionFlag> flags = …) const.

Source

pub unsafe fn create_alpha_mask_0a(&self) -> CppBox<QImage>

Calls C++ function: QImage QImage::createAlphaMask() const.

Source

pub unsafe fn create_heuristic_mask_1a( &self, clip_tight: bool, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::createHeuristicMask(bool clipTight = …) const.

Source

pub unsafe fn create_heuristic_mask_0a(&self) -> CppBox<QImage>

Calls C++ function: QImage QImage::createHeuristicMask() const.

Source

pub unsafe fn create_mask_from_color_2a( &self, color: c_uint, mode: MaskMode, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::createMaskFromColor(unsigned int color, Qt::MaskMode mode = …) const.

Source

pub unsafe fn create_mask_from_color_1a(&self, color: c_uint) -> CppBox<QImage>

Calls C++ function: QImage QImage::createMaskFromColor(unsigned int color) const.

Source

pub unsafe fn depth(&self) -> c_int

Calls C++ function: int QImage::depth() const.

Source

pub unsafe fn detach(&self)

Calls C++ function: void QImage::detach().

Source

pub unsafe fn dev_type(&self) -> c_int

Calls C++ function: virtual int QImage::devType() const.

Source

pub unsafe fn device_pixel_ratio(&self) -> c_double

Calls C++ function: double QImage::devicePixelRatio() const.

Source

pub unsafe fn dots_per_meter_x(&self) -> c_int

Calls C++ function: int QImage::dotsPerMeterX() const.

Source

pub unsafe fn dots_per_meter_y(&self) -> c_int

Calls C++ function: int QImage::dotsPerMeterY() const.

Source

pub unsafe fn fill_uint(&self, pixel: c_uint)

Calls C++ function: void QImage::fill(unsigned int pixel).

Source

pub unsafe fn fill_q_color(&self, color: impl CastInto<Ref<QColor>>)

Calls C++ function: void QImage::fill(const QColor& color).

Source

pub unsafe fn fill_global_color(&self, color: GlobalColor)

Calls C++ function: void QImage::fill(Qt::GlobalColor color).

Source

pub unsafe fn format(&self) -> Format

Calls C++ function: QImage::Format QImage::format() const.

Source

pub unsafe fn from_data_uchar_int_char( data: *const c_uchar, size: c_int, format: *const c_char, ) -> CppBox<QImage>

Calls C++ function: static QImage QImage::fromData(const unsigned char* data, int size, const char* format = …).

Source

pub unsafe fn from_data_q_byte_array_char( data: impl CastInto<Ref<QByteArray>>, format: *const c_char, ) -> CppBox<QImage>

Calls C++ function: static QImage QImage::fromData(const QByteArray& data, const char* format = …).

Source

pub unsafe fn from_data_uchar_int( data: *const c_uchar, size: c_int, ) -> CppBox<QImage>

Calls C++ function: static QImage QImage::fromData(const unsigned char* data, int size).

Source

pub unsafe fn from_data_q_byte_array( data: impl CastInto<Ref<QByteArray>>, ) -> CppBox<QImage>

Calls C++ function: static QImage QImage::fromData(const QByteArray& data).

Source

pub unsafe fn has_alpha_channel(&self) -> bool

Calls C++ function: bool QImage::hasAlphaChannel() const.

Source

pub unsafe fn height(&self) -> c_int

Calls C++ function: int QImage::height() const.

Source

pub unsafe fn invert_pixels_1a(&self, arg1: InvertMode)

Calls C++ function: void QImage::invertPixels(QImage::InvertMode arg1 = …).

Source

pub unsafe fn invert_pixels_0a(&self)

Calls C++ function: void QImage::invertPixels().

Source

pub unsafe fn is_detached(&self) -> bool

Calls C++ function: bool QImage::isDetached() const.

Source

pub unsafe fn is_grayscale(&self) -> bool

Calls C++ function: bool QImage::isGrayscale() const.

Source

pub unsafe fn is_null(&self) -> bool

Calls C++ function: bool QImage::isNull() const.

Source

pub unsafe fn load_q_io_device_char( &self, device: impl CastInto<Ptr<QIODevice>>, format: *const c_char, ) -> bool

Calls C++ function: bool QImage::load(QIODevice* device, const char* format).

Source

pub unsafe fn load_q_string_char( &self, file_name: impl CastInto<Ref<QString>>, format: *const c_char, ) -> bool

Calls C++ function: bool QImage::load(const QString& fileName, const char* format = …).

Source

pub unsafe fn load_q_string( &self, file_name: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QImage::load(const QString& fileName).

Source

pub unsafe fn load_from_data_uchar_int_char( &self, buf: *const c_uchar, len: c_int, format: *const c_char, ) -> bool

Calls C++ function: bool QImage::loadFromData(const unsigned char* buf, int len, const char* format = …).

Source

pub unsafe fn load_from_data_q_byte_array_char( &self, data: impl CastInto<Ref<QByteArray>>, aformat: *const c_char, ) -> bool

Calls C++ function: bool QImage::loadFromData(const QByteArray& data, const char* aformat = …).

Source

pub unsafe fn load_from_data_uchar_int( &self, buf: *const c_uchar, len: c_int, ) -> bool

Calls C++ function: bool QImage::loadFromData(const unsigned char* buf, int len).

Source

pub unsafe fn load_from_data_q_byte_array( &self, data: impl CastInto<Ref<QByteArray>>, ) -> bool

Calls C++ function: bool QImage::loadFromData(const QByteArray& data).

Source

pub unsafe fn mirrored_2a( &self, horizontally: bool, vertically: bool, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::mirrored(bool horizontally = …, bool vertically = …) const.

Source

pub unsafe fn mirrored_1a(&self, horizontally: bool) -> CppBox<QImage>

Calls C++ function: QImage QImage::mirrored(bool horizontally = …) const.

Source

pub unsafe fn mirrored_0a(&self) -> CppBox<QImage>

Calls C++ function: QImage QImage::mirrored() const.

Source

pub unsafe fn new() -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage().

Source

pub unsafe fn from_q_size_format( size: impl CastInto<Ref<QSize>>, format: Format, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(const QSize& size, QImage::Format format).

Source

pub unsafe fn from_2_int_format( width: c_int, height: c_int, format: Format, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(int width, int height, QImage::Format format).

Source

pub unsafe fn from_uchar2_int_format_option_fn_void( data: *mut c_uchar, width: c_int, height: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, cleanup_info: *mut c_void, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(unsigned char* data, int width, int height, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …, void* cleanupInfo = …).

Source

pub unsafe fn from_uchar2_int_format_option_fn_void2( data: *const c_uchar, width: c_int, height: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, cleanup_info: *mut c_void, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(const unsigned char* data, int width, int height, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …, void* cleanupInfo = …).

Source

pub unsafe fn from_uchar3_int_format_option_fn_void( data: *mut c_uchar, width: c_int, height: c_int, bytes_per_line: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, cleanup_info: *mut c_void, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(unsigned char* data, int width, int height, int bytesPerLine, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …, void* cleanupInfo = …).

Source

pub unsafe fn from_uchar3_int_format_option_fn_void2( data: *const c_uchar, width: c_int, height: c_int, bytes_per_line: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, cleanup_info: *mut c_void, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(const unsigned char* data, int width, int height, int bytesPerLine, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …, void* cleanupInfo = …).

Source

pub unsafe fn from_q_string_char( file_name: impl CastInto<Ref<QString>>, format: *const c_char, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(const QString& fileName, const char* format = …).

Source

pub unsafe fn from_uchar2_int_format_option_fn( data: *mut c_uchar, width: c_int, height: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(unsigned char* data, int width, int height, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …).

Source

pub unsafe fn from_uchar2_int_format( data: *mut c_uchar, width: c_int, height: c_int, format: Format, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(unsigned char* data, int width, int height, QImage::Format format).

Source

pub unsafe fn from_uchar2_int_format_option_fn2( data: *const c_uchar, width: c_int, height: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(const unsigned char* data, int width, int height, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …).

Source

pub unsafe fn from_uchar2_int_format2( data: *const c_uchar, width: c_int, height: c_int, format: Format, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(const unsigned char* data, int width, int height, QImage::Format format).

Source

pub unsafe fn from_uchar3_int_format_option_fn( data: *mut c_uchar, width: c_int, height: c_int, bytes_per_line: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(unsigned char* data, int width, int height, int bytesPerLine, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …).

Source

pub unsafe fn from_uchar3_int_format( data: *mut c_uchar, width: c_int, height: c_int, bytes_per_line: c_int, format: Format, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(unsigned char* data, int width, int height, int bytesPerLine, QImage::Format format).

Source

pub unsafe fn from_uchar3_int_format_option_fn2( data: *const c_uchar, width: c_int, height: c_int, bytes_per_line: c_int, format: Format, cleanup_function: Option<extern "C" fn(*mut c_void)>, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(const unsigned char* data, int width, int height, int bytesPerLine, QImage::Format format, void (*FN_PTR)(void *) cleanupFunction = …).

Source

pub unsafe fn from_uchar3_int_format2( data: *const c_uchar, width: c_int, height: c_int, bytes_per_line: c_int, format: Format, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(const unsigned char* data, int width, int height, int bytesPerLine, QImage::Format format).

Source

pub unsafe fn from_q_string( file_name: impl CastInto<Ref<QString>>, ) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(const QString& fileName).

Source

pub unsafe fn new_copy(arg1: impl CastInto<Ref<QImage>>) -> CppBox<QImage>

Calls C++ function: [constructor] void QImage::QImage(const QImage& arg1).

Source

pub unsafe fn offset(&self) -> CppBox<QPoint>

Calls C++ function: QPoint QImage::offset() const.

Source

pub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>

Calls C++ function: virtual QPaintEngine* QImage::paintEngine() const.

Source

pub unsafe fn pixel_2a(&self, x: c_int, y: c_int) -> c_uint

Calls C++ function: unsigned int QImage::pixel(int x, int y) const.

Source

pub unsafe fn pixel_1a(&self, pt: impl CastInto<Ref<QPoint>>) -> c_uint

Calls C++ function: unsigned int QImage::pixel(const QPoint& pt) const.

Source

pub unsafe fn pixel_color_2a(&self, x: c_int, y: c_int) -> CppBox<QColor>

Calls C++ function: QColor QImage::pixelColor(int x, int y) const.

Source

pub unsafe fn pixel_color_1a( &self, pt: impl CastInto<Ref<QPoint>>, ) -> CppBox<QColor>

Calls C++ function: QColor QImage::pixelColor(const QPoint& pt) const.

Source

pub unsafe fn pixel_format(&self) -> CppBox<QPixelFormat>

Calls C++ function: QPixelFormat QImage::pixelFormat() const.

Source

pub unsafe fn pixel_index_2a(&self, x: c_int, y: c_int) -> c_int

Calls C++ function: int QImage::pixelIndex(int x, int y) const.

Source

pub unsafe fn pixel_index_1a(&self, pt: impl CastInto<Ref<QPoint>>) -> c_int

Calls C++ function: int QImage::pixelIndex(const QPoint& pt) const.

Source

pub unsafe fn rect(&self) -> CppBox<QRect>

Calls C++ function: QRect QImage::rect() const.

Source

pub unsafe fn reinterpret_as_format(&self, f: Format) -> bool

Calls C++ function: bool QImage::reinterpretAsFormat(QImage::Format f).

Source

pub unsafe fn rgb_swapped(&self) -> CppBox<QImage>

Calls C++ function: QImage QImage::rgbSwapped() const.

Source

pub unsafe fn save_q_string_char_int( &self, file_name: impl CastInto<Ref<QString>>, format: *const c_char, quality: c_int, ) -> bool

Calls C++ function: bool QImage::save(const QString& fileName, const char* format = …, int quality = …) const.

Source

pub unsafe fn save_q_io_device_char_int( &self, device: impl CastInto<Ptr<QIODevice>>, format: *const c_char, quality: c_int, ) -> bool

Calls C++ function: bool QImage::save(QIODevice* device, const char* format = …, int quality = …) const.

Source

pub unsafe fn save_q_string_char( &self, file_name: impl CastInto<Ref<QString>>, format: *const c_char, ) -> bool

Calls C++ function: bool QImage::save(const QString& fileName, const char* format = …) const.

Source

pub unsafe fn save_q_string( &self, file_name: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QImage::save(const QString& fileName) const.

Source

pub unsafe fn save_q_io_device_char( &self, device: impl CastInto<Ptr<QIODevice>>, format: *const c_char, ) -> bool

Calls C++ function: bool QImage::save(QIODevice* device, const char* format = …) const.

Source

pub unsafe fn save_q_io_device( &self, device: impl CastInto<Ptr<QIODevice>>, ) -> bool

Calls C++ function: bool QImage::save(QIODevice* device) const.

Source

pub unsafe fn scaled_2_int_aspect_ratio_mode_transformation_mode( &self, w: c_int, h: c_int, aspect_mode: AspectRatioMode, mode: TransformationMode, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::scaled(int w, int h, Qt::AspectRatioMode aspectMode = …, Qt::TransformationMode mode = …) const.

Source

pub unsafe fn scaled_q_size_aspect_ratio_mode_transformation_mode( &self, s: impl CastInto<Ref<QSize>>, aspect_mode: AspectRatioMode, mode: TransformationMode, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::scaled(const QSize& s, Qt::AspectRatioMode aspectMode = …, Qt::TransformationMode mode = …) const.

Source

pub unsafe fn scaled_2_int_aspect_ratio_mode( &self, w: c_int, h: c_int, aspect_mode: AspectRatioMode, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::scaled(int w, int h, Qt::AspectRatioMode aspectMode = …) const.

Source

pub unsafe fn scaled_2_int(&self, w: c_int, h: c_int) -> CppBox<QImage>

Calls C++ function: QImage QImage::scaled(int w, int h) const.

Source

pub unsafe fn scaled_q_size_aspect_ratio_mode( &self, s: impl CastInto<Ref<QSize>>, aspect_mode: AspectRatioMode, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::scaled(const QSize& s, Qt::AspectRatioMode aspectMode = …) const.

Source

pub unsafe fn scaled_q_size( &self, s: impl CastInto<Ref<QSize>>, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::scaled(const QSize& s) const.

Source

pub unsafe fn scaled_to_height_2a( &self, h: c_int, mode: TransformationMode, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::scaledToHeight(int h, Qt::TransformationMode mode = …) const.

Source

pub unsafe fn scaled_to_height_1a(&self, h: c_int) -> CppBox<QImage>

Calls C++ function: QImage QImage::scaledToHeight(int h) const.

Source

pub unsafe fn scaled_to_width_2a( &self, w: c_int, mode: TransformationMode, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::scaledToWidth(int w, Qt::TransformationMode mode = …) const.

Source

pub unsafe fn scaled_to_width_1a(&self, w: c_int) -> CppBox<QImage>

Calls C++ function: QImage QImage::scaledToWidth(int w) const.

Source

pub unsafe fn scan_line_mut(&self, arg1: c_int) -> *mut c_uchar

Calls C++ function: unsigned char* QImage::scanLine(int arg1).

Source

pub unsafe fn scan_line(&self, arg1: c_int) -> *const c_uchar

Calls C++ function: const unsigned char* QImage::scanLine(int arg1) const.

Source

pub unsafe fn set_alpha_channel( &self, alpha_channel: impl CastInto<Ref<QImage>>, )

Calls C++ function: void QImage::setAlphaChannel(const QImage& alphaChannel).

Source

pub unsafe fn set_color(&self, i: c_int, c: c_uint)

Calls C++ function: void QImage::setColor(int i, unsigned int c).

Source

pub unsafe fn set_color_count(&self, arg1: c_int)

Calls C++ function: void QImage::setColorCount(int arg1).

Source

pub unsafe fn set_color_space(&self, arg1: impl CastInto<Ref<QColorSpace>>)

Calls C++ function: void QImage::setColorSpace(const QColorSpace& arg1).

Source

pub unsafe fn set_color_table(&self, colors: impl CastInto<Ref<QVectorOfUint>>)

Calls C++ function: void QImage::setColorTable(QVector<unsigned int> colors).

Source

pub unsafe fn set_device_pixel_ratio(&self, scale_factor: c_double)

Calls C++ function: void QImage::setDevicePixelRatio(double scaleFactor).

Source

pub unsafe fn set_dots_per_meter_x(&self, arg1: c_int)

Calls C++ function: void QImage::setDotsPerMeterX(int arg1).

Source

pub unsafe fn set_dots_per_meter_y(&self, arg1: c_int)

Calls C++ function: void QImage::setDotsPerMeterY(int arg1).

Source

pub unsafe fn set_offset(&self, arg1: impl CastInto<Ref<QPoint>>)

Calls C++ function: void QImage::setOffset(const QPoint& arg1).

Source

pub unsafe fn set_pixel_3a(&self, x: c_int, y: c_int, index_or_rgb: c_uint)

Calls C++ function: void QImage::setPixel(int x, int y, unsigned int index_or_rgb).

Source

pub unsafe fn set_pixel_2a( &self, pt: impl CastInto<Ref<QPoint>>, index_or_rgb: c_uint, )

Calls C++ function: void QImage::setPixel(const QPoint& pt, unsigned int index_or_rgb).

Source

pub unsafe fn set_pixel_color_3a( &self, x: c_int, y: c_int, c: impl CastInto<Ref<QColor>>, )

Calls C++ function: void QImage::setPixelColor(int x, int y, const QColor& c).

Source

pub unsafe fn set_pixel_color_2a( &self, pt: impl CastInto<Ref<QPoint>>, c: impl CastInto<Ref<QColor>>, )

Calls C++ function: void QImage::setPixelColor(const QPoint& pt, const QColor& c).

Source

pub unsafe fn set_text( &self, key: impl CastInto<Ref<QString>>, value: impl CastInto<Ref<QString>>, )

Calls C++ function: void QImage::setText(const QString& key, const QString& value).

Source

pub unsafe fn size(&self) -> CppBox<QSize>

Calls C++ function: QSize QImage::size() const.

Source

pub unsafe fn size_in_bytes(&self) -> c_longlong

Calls C++ function: long long QImage::sizeInBytes() const.

Source

pub unsafe fn static_meta_object() -> Ref<QMetaObject>

Returns a reference to the staticMetaObject field.

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QImage>>)

Calls C++ function: void QImage::swap(QImage& other).

Source

pub unsafe fn text_1a( &self, key: impl CastInto<Ref<QString>>, ) -> CppBox<QString>

Calls C++ function: QString QImage::text(const QString& key = …) const.

Source

pub unsafe fn text_0a(&self) -> CppBox<QString>

Calls C++ function: QString QImage::text() const.

Source

pub unsafe fn text_keys(&self) -> CppBox<QStringList>

Calls C++ function: QStringList QImage::textKeys() const.

Source

pub unsafe fn to_image_format( format: impl CastInto<Ref<QPixelFormat>>, ) -> Format

Calls C++ function: static QImage::Format QImage::toImageFormat(QPixelFormat format).

Source

pub unsafe fn to_pixel_format(format: Format) -> CppBox<QPixelFormat>

Calls C++ function: static QPixelFormat QImage::toPixelFormat(QImage::Format format).

Source

pub unsafe fn to_q_variant(&self) -> CppBox<QVariant>

Calls C++ function: QVariant QImage::operator QVariant() const.

Source

pub unsafe fn transformed_q_matrix_transformation_mode( &self, matrix: impl CastInto<Ref<QMatrix>>, mode: TransformationMode, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::transformed(const QMatrix& matrix, Qt::TransformationMode mode = …) const.

Source

pub unsafe fn transformed_q_transform_transformation_mode( &self, matrix: impl CastInto<Ref<QTransform>>, mode: TransformationMode, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::transformed(const QTransform& matrix, Qt::TransformationMode mode = …) const.

Source

pub unsafe fn transformed_q_matrix( &self, matrix: impl CastInto<Ref<QMatrix>>, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::transformed(const QMatrix& matrix) const.

Source

pub unsafe fn transformed_q_transform( &self, matrix: impl CastInto<Ref<QTransform>>, ) -> CppBox<QImage>

Calls C++ function: QImage QImage::transformed(const QTransform& matrix) const.

Source

pub unsafe fn true_matrix_q_matrix2_int( arg1: impl CastInto<Ref<QMatrix>>, w: c_int, h: c_int, ) -> CppBox<QMatrix>

Calls C++ function: static QMatrix QImage::trueMatrix(const QMatrix& arg1, int w, int h).

Source

pub unsafe fn true_matrix_q_transform2_int( arg1: impl CastInto<Ref<QTransform>>, w: c_int, h: c_int, ) -> CppBox<QTransform>

Calls C++ function: static QTransform QImage::trueMatrix(const QTransform& arg1, int w, int h).

Source

pub unsafe fn valid_2a(&self, x: c_int, y: c_int) -> bool

Calls C++ function: bool QImage::valid(int x, int y) const.

Source

pub unsafe fn valid_1a(&self, pt: impl CastInto<Ref<QPoint>>) -> bool

Calls C++ function: bool QImage::valid(const QPoint& pt) const.

Source

pub unsafe fn width(&self) -> c_int

Calls C++ function: int QImage::width() const.

Methods from Deref<Target = QPaintDevice>§

Source

pub unsafe fn color_count(&self) -> c_int

Calls C++ function: int QPaintDevice::colorCount() const.

Source

pub unsafe fn depth(&self) -> c_int

Calls C++ function: int QPaintDevice::depth() const.

Source

pub unsafe fn dev_type(&self) -> c_int

Calls C++ function: virtual int QPaintDevice::devType() const.

Source

pub unsafe fn device_pixel_ratio(&self) -> c_int

Calls C++ function: int QPaintDevice::devicePixelRatio() const.

Source

pub unsafe fn device_pixel_ratio_f(&self) -> c_double

Calls C++ function: double QPaintDevice::devicePixelRatioF() const.

Source

pub unsafe fn height(&self) -> c_int

Calls C++ function: int QPaintDevice::height() const.

Source

pub unsafe fn height_m_m(&self) -> c_int

Calls C++ function: int QPaintDevice::heightMM() const.

Source

pub unsafe fn logical_dpi_x(&self) -> c_int

Calls C++ function: int QPaintDevice::logicalDpiX() const.

Source

pub unsafe fn logical_dpi_y(&self) -> c_int

Calls C++ function: int QPaintDevice::logicalDpiY() const.

Source

pub unsafe fn paint_engine(&self) -> Ptr<QPaintEngine>

Calls C++ function: pure virtual QPaintEngine* QPaintDevice::paintEngine() const.

Source

pub unsafe fn painting_active(&self) -> bool

Calls C++ function: bool QPaintDevice::paintingActive() const.

Source

pub unsafe fn physical_dpi_x(&self) -> c_int

Calls C++ function: int QPaintDevice::physicalDpiX() const.

Source

pub unsafe fn physical_dpi_y(&self) -> c_int

Calls C++ function: int QPaintDevice::physicalDpiY() const.

Source

pub unsafe fn width(&self) -> c_int

Calls C++ function: int QPaintDevice::width() const.

Source

pub unsafe fn width_m_m(&self) -> c_int

Calls C++ function: int QPaintDevice::widthMM() const.

Trait Implementations§

Source§

impl CppDeletable for QImage

Source§

unsafe fn delete(&self)

Calls C++ function: virtual [destructor] void QImage::~QImage().

Source§

impl Deref for QImage

Source§

fn deref(&self) -> &QPaintDevice

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QImage* ptr).

Source§

type Target = QPaintDevice

The resulting type after dereferencing.
Source§

impl DynamicCast<QImage> for QPaintDevice

Source§

unsafe fn dynamic_cast(ptr: Ptr<QPaintDevice>) -> Ptr<QImage>

Calls C++ function: QImage* dynamic_cast<QImage*>(QPaintDevice* ptr).

Source§

impl PartialEq<Ref<QImage>> for QImage

Source§

fn eq(&self, arg1: &Ref<QImage>) -> bool

Calls C++ function: bool QImage::operator==(const QImage& arg1) const.

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Size for QImage

Source§

unsafe fn size(&self) -> usize

Calls C++ function: QSize QImage::size() const.

Source§

impl StaticDowncast<QImage> for QPaintDevice

Source§

unsafe fn static_downcast(ptr: Ptr<QPaintDevice>) -> Ptr<QImage>

Calls C++ function: QImage* static_cast<QImage*>(QPaintDevice* ptr).

Source§

impl StaticUpcast<QPaintDevice> for QImage

Source§

unsafe fn static_upcast(ptr: Ptr<QImage>) -> Ptr<QPaintDevice>

Calls C++ function: QPaintDevice* static_cast<QPaintDevice*>(QImage* ptr).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.