3 |
|
|
4 |
Load, manipulate and display images |
Load, manipulate and display images |
5 |
|
|
6 |
Copyright (C) 1996 Free Software Foundation, Inc. |
Copyright (C) 1996, 2005 Free Software Foundation, Inc. |
7 |
|
|
8 |
Written by: Adam Fedor <fedor@colorado.edu> |
Written by: Adam Fedor <fedor@colorado.edu> |
9 |
Date: Feb 1996 |
Date: Feb 1996 |
178 |
- (BOOL) drawRepresentation: (NSImageRep*)imageRep |
- (BOOL) drawRepresentation: (NSImageRep*)imageRep |
179 |
inRect: (NSRect)aRect; |
inRect: (NSRect)aRect; |
180 |
#ifndef STRICT_OPENSTEP |
#ifndef STRICT_OPENSTEP |
181 |
|
/** Calls -drawAtPoint:fromRect:operation:fraction: with |
182 |
|
<code>dstRect</code> given by <code>point</code> and the size of |
183 |
|
<code>srcRect</code>. */ |
184 |
- (void) drawAtPoint: (NSPoint)point |
- (void) drawAtPoint: (NSPoint)point |
185 |
fromRect: (NSRect)srcRect |
fromRect: (NSRect)srcRect |
186 |
operation: (NSCompositingOperation)op |
operation: (NSCompositingOperation)op |
187 |
fraction: (float)delta; |
fraction: (float)delta; |
188 |
|
|
189 |
|
/** <p>Takes the part of the receiver given by <code>srcRect</code> and |
190 |
|
draws it in <code>dstRect</code> in the current coordinate system, |
191 |
|
transforming the image as necessary. |
192 |
|
</p><p> |
193 |
|
The image is drawn as if it was drawn to a cleared window, then |
194 |
|
dissolved using the fraction <code>delta</code> to another cleared |
195 |
|
window, and finally composited using <code>op</code> to the |
196 |
|
destination. |
197 |
|
</p><p> |
198 |
|
Note that compositing and dissolving doesn't work on all devices |
199 |
|
(printers, in particular). |
200 |
|
</p> */ |
201 |
- (void) drawInRect: (NSRect)dstRect |
- (void) drawInRect: (NSRect)dstRect |
202 |
fromRect: (NSRect)srcRect |
fromRect: (NSRect)srcRect |
203 |
operation: (NSCompositingOperation)op |
operation: (NSCompositingOperation)op |