Avaya Client Services API Reference (OS X)
|
CSRenderingBlock object which represents one block of given size received from collaboration server. More...
#import <CSSharingBlock.h>
Inherits NSObject.
Instance Methods | |
(instancetype) | - initWithRenderingBlock: |
Creates a CSSharingBlock object from data in CSRenderingBlock. More... | |
(instancetype) | - initWithCGImage:rect: |
Creates a block from existing CGImage. More... | |
(void) | - drawInContext: |
Puts CGImage which backs CSSharingBlock object on given drawing context. More... | |
(void) | - invertYWithViewHeight: |
Flips Y coord to put image on context properly since the coordinate system on OSX is originated from BottomLeft point of the screen (when operating on CGContext). More... | |
CSRenderingBlock object which represents one block of given size received from collaboration server.
Comparing to CSRenderingBlock it's higher level since raw image data are transformed into CGImage here. Objects of this class usually aren't used explicitly by client unless custom sharing canvas is developed.
- (void) drawInContext: | (CGContextRef) | context |
Puts CGImage which backs CSSharingBlock object on given drawing context.
context | Context on which CGImage is supposed to be drawn. |
- (instancetype) initWithCGImage: | (CGImageRef) | image | |
rect: | (CGRect) | rect | |
Creates a block from existing CGImage.
Can be used for testing.
image | CGImage object which should back created CSSharingBlock |
rect | Rect which define position of image in coordinates of frame containing given block |
- (instancetype) initWithRenderingBlock: | (CSRenderingBlock *) | renderingBlock |
Creates a CSSharingBlock object from data in CSRenderingBlock.
CSSharingBlock is backed by CGImage object which can be drawn on CGContext using method drawInContext:.
- (void) invertYWithViewHeight: | (CGFloat) | viewHeight |
Flips Y coord to put image on context properly since the coordinate system on OSX is originated from BottomLeft point of the screen (when operating on CGContext).
viewHeight | Height of the whole frame which given block belongs to. |