|
||
SS_IMAGE_HANDLE ss_image_capture(left, right, top, bottom);
int left; // Left-most pixel of capture area int right; // Right-most pixel of capture area int top; // Top-most pixel of capture area int bottom; // Bottom-most pixel of capture area
|
|
||||
Synopsis |
#include "silver.h"
The ss_image_capture function captures a rectangular portion of the viewport for later display. It is often used to remove interactive items that track the cursor.
|
|
|||
Parameters |
left is the left-most pixel boundary of the area to be captured.
right is the right-most pixel boundary of the area to be captured.
top is the top-most pixel boundary of the area to be captured.
bottom is the bottom-most pixel boundary of the area to be captured.
|
|
|||
Return Value |
ss_image_capture returns a handle that can be used to restore the area of the display bounded by the capture rectangle if successful, otherwise it returns NULL
|
|
|||
Remarks |
You must call ss_image_destroy with a handle you obtained from ss_image_capture when you are finished with it.
If all of the parameters are 0, then the entire viewport will be captured. Parameters which exceed the boundaries of the viewport are adjusted to the viewport extremities.
|
|
|||
See Also |
|
||||
Example |
The following illustrates the typical way in which ss_image_capture is paired with ss_image_display and ss_image_destroy to provide interactive visualizations that track the cursor
|
|
|||
|
|
|