Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @implementation NSImage (ImLazyButIDontWantTheWarningsToMakeMeLookBad)
- - (void)deprecatedCompositeToPoint: (NSPoint)thePoint operation: (NSCompositingOperation)theOperation {
- NSRect theTargetRect;
- theTargetRect.origin = thePoint;
- theTargetRect.size = [self size];
- if ([[NSGraphicsContext currentContext] isFlipped]) {
- theTargetRect.origin.y -= theTargetRect.size.height;
- }
- [self drawInRect: theTargetRect fromRect: NSZeroRect operation: theOperation fraction: 1.0 respectFlipped: YES hints: nil];
- }
- - (void)deprecatedDissolveToPoint: (NSPoint)thePoint fraction: (CGFloat)theAlphaValue {
- NSRect theTargetRect;
- theTargetRect.origin = thePoint;
- theTargetRect.size = [self size];
- if ([[NSGraphicsContext currentContext] isFlipped]) {
- theTargetRect.origin.y -= theTargetRect.size.height;
- }
- [self drawInRect: theTargetRect fromRect: NSZeroRect operation: NSCompositeSourceOver fraction: theAlphaValue respectFlipped: YES hints: nil];
- }
- @end
Add Comment
Please, Sign In to add comment