UIGraphics.h

来源:互联网 发布:c语言新建项目 编辑:程序博客网 时间:2024/06/16 20:50

//

//  UIGraphics.h

//  UIKit

//

//  Copyright (c) 2005-2012, Apple Inc. All rights reserved.

//


#import<Foundation/Foundation.h>

#import<CoreGraphics/CoreGraphics.h>

#import<UIKit/UIKitDefines.h>


@classUIImage;


UIKIT_EXTERNCGContextRef UIGraphicsGetCurrentContext(void);

UIKIT_EXTERNvoid UIGraphicsPushContext(CGContextRef context);

UIKIT_EXTERNvoid UIGraphicsPopContext(void);


UIKIT_EXTERNvoid UIRectFillUsingBlendMode(CGRect rect,CGBlendMode blendMode);

UIKIT_EXTERNvoid UIRectFill(CGRect rect);


UIKIT_EXTERNvoid UIRectFrameUsingBlendMode(CGRect rect,CGBlendMode blendMode);

UIKIT_EXTERNvoid UIRectFrame(CGRect rect);


UIKIT_EXTERNvoid UIRectClip(CGRect rect);


// UIImage context


UIKIT_EXTERNvoid     UIGraphicsBeginImageContext(CGSize size);

UIKIT_EXTERNvoid     UIGraphicsBeginImageContextWithOptions(CGSize size,BOOL opaque, CGFloat scale) NS_AVAILABLE_IOS(4_0);

UIKIT_EXTERNUIImage* UIGraphicsGetImageFromCurrentImageContext(void);

UIKIT_EXTERNvoid     UIGraphicsEndImageContext(void); 


// PDF context


UIKIT_EXTERNBOOL UIGraphicsBeginPDFContextToFile(NSString *path, CGRect bounds, NSDictionary *documentInfo)NS_AVAILABLE_IOS(3_2);

UIKIT_EXTERNvoid UIGraphicsBeginPDFContextToData(NSMutableData *data, CGRect bounds, NSDictionary *documentInfo)NS_AVAILABLE_IOS(3_2);

UIKIT_EXTERNvoid UIGraphicsEndPDFContext(void)NS_AVAILABLE_IOS(3_2);


UIKIT_EXTERNvoid UIGraphicsBeginPDFPage(void)NS_AVAILABLE_IOS(3_2);

UIKIT_EXTERNvoid UIGraphicsBeginPDFPageWithInfo(CGRect bounds, NSDictionary *pageInfo)NS_AVAILABLE_IOS(3_2);


UIKIT_EXTERN CGRect UIGraphicsGetPDFContextBounds(void)NS_AVAILABLE_IOS(3_2);


UIKIT_EXTERNvoid UIGraphicsSetPDFContextURLForRect(NSURL *url, CGRect rect)NS_AVAILABLE_IOS(3_2);

UIKIT_EXTERNvoid UIGraphicsAddPDFContextDestinationAtPoint(NSString *name, CGPoint point)NS_AVAILABLE_IOS(3_2);

UIKIT_EXTERNvoid UIGraphicsSetPDFContextDestinationForRect(NSString *name, CGRect rect)NS_AVAILABLE_IOS(3_2);


原创粉丝点击