---
+0 NSView NSImage NSData转换
Tag: Cocoa
NSBitmapImageRep *bitmap = [view bitmapImageRepForCachingDisplayInRect:[view visibleRect]];
[view cacheDisplayInRect:[view visibleRect] toBitmapImageRep:bitmap];
NSImage *image = [[NSImage alloc] initWithSize:NSMakeSize(width, height)];
[
查看全文: http://www.udpwork.com/item/16651.html
[view cacheDisplayInRect:[view visibleRect] toBitmapImageRep:bitmap];
NSImage *image = [[NSImage alloc] initWithSize:NSMakeSize(width, height)];
[
查看全文: http://www.udpwork.com/item/16651.html