mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 23:40:48 +00:00
Document GSReadRect and update users.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19801 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
85abecbc3a
commit
9cd4d1cc7f
4 changed files with 50 additions and 15 deletions
|
@ -372,7 +372,41 @@ APPKIT_EXPORT NSGraphicsContext *GSCurrentContext(void);
|
|||
/* ----------------------------------------------------------------------- */
|
||||
/* NSGraphics Ops */
|
||||
/* ----------------------------------------------------------------------- */
|
||||
@interface NSGraphicsContext (NSGraphics)
|
||||
@interface NSGraphicsContext (NSGraphics)
|
||||
|
||||
/**
|
||||
<p>
|
||||
Read raw pixels from the device and return the information as a bitmap.
|
||||
Pixels are read from the smallest device-pixel aligned rectangle
|
||||
containing rect (defined in the current graphics state and clipped to
|
||||
the current window, but not against the clipping path). If the resulting
|
||||
device rectangle is degenerate, Size will be (0,0) and Data will be nil,
|
||||
but the other entries in the dictionary will be filled in.
|
||||
</p><p>
|
||||
If the device does not support the operation, returns nil.
|
||||
</p><p>
|
||||
The returned dictionary contains at least the following keys:
|
||||
</p>
|
||||
<deflist>
|
||||
<term>Data</term><desc>An NSData-instance with the image data.</desc>
|
||||
|
||||
<term>Size</term><desc>An NSValue/NSSize with the size in pixels of the
|
||||
returned image data.</desc>
|
||||
|
||||
<term>BitsPerSample</term><desc>An NSValue/unsigned int.</desc>
|
||||
|
||||
<term>SamplesPerPixel</term><desc>An NSValue/unsigned int.</desc>
|
||||
|
||||
<term>ColorSpace</term><desc>An NSString with the name of the color space the
|
||||
data is in.</desc>
|
||||
|
||||
<term>HasAlpha</term><desc>An NSValue/unsigned int. 0 if the returned image
|
||||
does not have an alpha channel, 1 if it does.</desc>
|
||||
|
||||
<term>Matrix</term><desc>An NSAffineTransform-instance that contains the
|
||||
transform between current user space and image space for this image.</desc>
|
||||
</deflist>
|
||||
*/
|
||||
- (NSDictionary *) GSReadRect: (NSRect)rect;
|
||||
|
||||
/* Soon to be obsolete */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue