@@ -168,6 +168,14 @@ mod ffi {
168
168
#[ rust_name = "set_alpha_channel" ]
169
169
fn setAlphaChannel ( self : & mut QImage , alphaChannel : & QImage ) ;
170
170
171
+ /// Sets the number of pixels that fit horizontally in a physical meter, to x.
172
+ #[ rust_name = "set_dots_per_meter_x" ]
173
+ fn setDotsPerMeterX ( self : & mut QImage , x : i32 ) ;
174
+
175
+ /// Sets the number of pixels that fit vertically in a physical meter, to y.
176
+ #[ rust_name = "set_dots_per_meter_y" ]
177
+ fn setDotsPerMeterY ( self : & mut QImage , y : i32 ) ;
178
+
171
179
/// Sets the number of pixels by which the image is intended to be offset by when positioning relative to other images, to offset.
172
180
#[ rust_name = "set_offset" ]
173
181
fn setOffset ( self : & mut QImage , point : & QPoint ) ;
@@ -182,6 +190,10 @@ mod ffi {
182
190
/// Swaps image other with this image. This operation is very fast and never fails.
183
191
fn swap ( self : & mut QImage , other : & mut QImage ) ;
184
192
193
+ /// Changes the format of the image to format without changing the data. Only works between formats of the same depth.
194
+ #[ rust_name = "reinterpret_as_format" ]
195
+ fn reinterpretAsFormat ( self : & mut QImage , format : QImageFormat ) -> bool ;
196
+
185
197
/// Returns the number of pixels by which the image is intended to be offset by when positioning relative to other images.
186
198
fn offset ( self : & QImage ) -> QPoint ;
187
199
0 commit comments