TuSDKICGPUImageView Class Reference

Inherits from UIView
Conforms to SLGPUImageInput
Declared in TuSDKICGPUImageView.h

  fillMode

The fill mode dictates how images are fit in the view, with the default being kGPUImageFillModePreserveAspectRatio

@property (readwrite, nonatomic) LSQGPUImageFillModeType fillMode

Declared In

TuSDKICGPUImageView.h

  sizeInPixels

This calculates the current display size, in pixels, taking into account Retina scaling factors

@property (readonly, nonatomic) CGSize sizeInPixels

Declared In

TuSDKICGPUImageView.h

  cropRect

裁剪区域范围,均以比例表示:{{offsetX/allWidth,offsetY/allHeight},{sizeWidth/allWidth,sizeHeight/allHeight}}

@property (nonatomic, assign) CGRect cropRect

Declared In

TuSDKICGPUImageView.h

– setBackgroundColorRed:green:blue:alpha:

Handling fill mode

- (void)setBackgroundColorRed:(GLfloat)redComponent green:(GLfloat)greenComponent blue:(GLfloat)blueComponent alpha:(GLfloat)alphaComponent

Parameters

redComponent

Red component for background color

greenComponent

Green component for background color

blueComponent

Blue component for background color

alphaComponent

Alpha component for background color

Declared In

TuSDKICGPUImageView.h