EPSOperationWithView:insideRect:toData:printInfo:
ビューと矩形と印刷情報オブジェクトでプリントオペレーションオブジェクトを返します
+(NSPrintOperation *)EPSOperationWithView:(NSView *)aView:
insideRect:(NSRect)rect:
toData:(NSMutableData *)data:
printInfo:(NSPrintInfo *)aPrintInfo:
解説
ビューと矩形と印刷情報オブジェクトでEPSグラフィックスを印刷するプリントオペレーションオブジェクトを返します。
返り値
( NSPrintOperation * )
プリント操作
引数
( NSView * )aView
ビュー
( NSRect )rect
矩形
( NSMutableData * )data
データ
( NSPrintInfo * )aPrintInfo
印刷情報
フレームワーク
ApplicationKit
クラス
NSPrintOperation
Class Methods
使用可能
10.0
参照
+ EPSOperationWithView:insideRect:toData:
+ EPSOperationWithView:insideRect:toPath:printInfo:
例文
#import "Controller.h" @implementation Controller - (IBAction)pushButton:(id)sender { NSMutableData *mData = [NSMutableData dataWithCapacity:1]; NSPrintOperation *pOp = [NSPrintOperation EPSOperationWithView:[[sender window] contentView] insideRect:NSMakeRect(0,0,100,100) toData:mData printInfo:nil ]; NSLog([mData description]); } @end