( since = "vala-0.18"
, replacement = "Pixbuf.from_stream_at_scale_async"
) ]public static async Pixbuf new_from_stream_at_scale_async
? cancellable = null
) throws Error
Warning: new_from_stream_at_scale_async is deprecated. Use
Creates a new pixbuf by asynchronously loading an image from an input stream.
For more details see Pixbuf.from_stream_at_scale
, which is the synchronous version of this function.
When the operation is finished,
callback will be called in the main thread. You can then call
new_from_stream_async.end to get the result of the
a InputStream from which to load the pixbuf
the width the image should have or -1 to not constrain the width
the height the image should have or -1 to not constrain the height
true to preserve the image's aspect ratio
optional Cancellable object,
null to ignore
a AsyncReadyCallback to call when the the pixbuf is loaded
the data to pass to the callback function