Function
GdkPixbufPixbufnew_from_stream_at_scale_async
since: 2.24
Declaration [src]
void
gdk_pixbuf_new_from_stream_at_scale_async (
  GInputStream* stream,
  gint width,
  gint height,
  gboolean preserve_aspect_ratio,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)
Description [src]
Creates a new pixbuf by asynchronously loading an image from an input stream.
For more details see gdk_pixbuf_new_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 gdk_pixbuf_new_from_stream_finish() to get the result of the operation.
Available since: 2.24
Parameters
- stream
- 
            Type: GInputStreamA GInputStreamfrom which to load the pixbuf.The data is owned by the caller of the function. 
- width
- 
            Type: gintThe width the image should have or -1 to not constrain the width. 
- height
- 
            Type: gintThe height the image should have or -1 to not constrain the height. 
- preserve_aspect_ratio
- 
            Type: gbooleanTRUEto preserve the image’s aspect ratio.
- cancellable
- 
            Type: GCancellableOptional GCancellableobject,NULLto ignore.The argument can be NULL.The data is owned by the caller of the function. 
- callback
- 
            Type: GAsyncReadyCallbackA GAsyncReadyCallbackto call when the pixbuf is loaded.
- user_data
- 
            Type: gpointerThe data to pass to the callback function. The argument can be NULL.The data is owned by the caller of the function.