Function
ShellScreenshotcomposite_to_stream
Declaration [src]
void
shell_screenshot_composite_to_stream (
CoglTexture* texture,
int x,
int y,
int width,
int height,
float scale,
CoglTexture* cursor,
int cursor_x,
int cursor_y,
float cursor_scale,
GOutputStream* stream,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Composite a rectangle defined by x, y, width, height from the texture to a pixbuf and write it as a PNG image into the stream.
This function completes asynchronously. Use shell_screenshot_composite_to_stream_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
texture-
Type:
CoglTextureThe source texture.
The data is owned by the caller of the function. x-
Type:
intX coordinate of the rectangle.
y-
Type:
intY coordinate of the rectangle.
width-
Type:
intWidth of the rectangle, or -1 to use the full texture.
height-
Type:
intHeight of the rectangle, or -1 to use the full texture.
scale-
Type:
floatScale of the source texture.
cursor-
Type:
CoglTextureThe cursor texture.
The argument can be NULL.The data is owned by the caller of the function. cursor_x-
Type:
intX coordinate to put the cursor texture at, relative to the full source texture.
cursor_y-
Type:
intY coordinate to put the cursor texture at, relative to the full source texture.
cursor_scale-
Type:
floatScale of the cursor texture.
stream-
Type:
GOutputStreamThe stream to write the PNG image into.
The data is owned by the caller of the function. callback-
Type:
GAsyncReadyCallbackFunction to call returning success or failure.
user_data-
Type:
gpointerThe data to pass to callback function.
The argument can be NULL.The data is owned by the caller of the function.