ãã¾ãã¾è¦ã¤ãã¦ã試ãã¦ã¿ã¾ããã
andreyvit / SoloComponents-iOS
iPhone/iPad components that are dead-easy to drop into your projects
- ATArrayView
- ATByteImage
- ATPagingView
ã¨ãã3ã¤ã®ã¯ã©ã¹ãå
¥ã£ã¦ãã¾ãã
ATArrayView
ãã¢ããã¸ã§ã¯ããå®è¡ãã¦ã¿ãã¨ãATPagingViewã¯æ®éã®UIScrollView使ã£ããã¼ã¸ã³ã°å¦çã»ã»ã»
ATArrayView
ãã¢ããã¸ã§ã¯ããå®è¡ãã¦ã¿ãã¨ã
ããNSArrayã®è¦ç´ ãUITableViewãããªãã¦ããããæãã«è¦ãã¦ãããã®ã¯ããããã
ï¼ã§ãThree20ã«ããããã®ãã£ããããªï¼
ATByteImage
ãã¢ããã¸ã§ã¯ãããªãã£ãã®ã§ãããããã¡ã¤ã«ã¿ã¦ã¿ãã¨
-(id)initWithSize:(CGSize)size; -(id)initWithCGImage:(CGImageRef)image; -(id)initWithImage:(UIImage *)image; - (ATByteImage *)copy; - (UIImage *)image; // image with a copy of bytes - (UIImage *)imageNoCopyData; // image with the current bytes â be sure not to modify the bytes! - (UIImage *)extractImage; // passes ownership of the bytes to the returned image, sets bytes to NULL - (ATByteImageContext *)newContext; - (ATByteImageContext *)context; @property(nonatomic, readonly, assign) NSUInteger width; @property(nonatomic, readonly, assign) NSUInteger height; @property(nonatomic, readonly, assign) CGSize size; @property(nonatomic, readonly, assign) NSUInteger byteCount; @property(nonatomic, readonly, assign) NSUInteger bytesPerPixel; @property(nonatomic, readonly, assign) NSUInteger bytesPerRow; @property(nonatomic, readonly, assign) NSUInteger bitsPerComponent; @property(nonatomic, readonly, assign) unsigned char *bytes; @property(nonatomic, readonly, assign) CGColorSpaceRef colorSpace; -(void)clear; -(void)invert; -(void)replaceColorWithRed:(unsigned char)red green:(unsigned char)green blue:(unsigned char)blue;
UIImageãããã¯ã»ã«ãã¼ã¿ã«ã¢ã¯ã»ã¹ã§ããããã«ãããããã®CoreGraphicsã®ç
©éãªæé ï¼CGDataProviderRefãçæãããã¨ãï¼ãã©ãããã¦ããã¦ããããããããã