Skip to content

VikingWarlock/VKSamplePicture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VKSamplePicture

A small class that can get the sample of an image quickly.


Usage

Step1. alloc and init the helper class.
[[VKSamplePicture alloc]init];
Step2. Setup the image;
@property(nonatomic,assign)UIImage* originalImage;
Step3. Give the sample rate
-(void)processSampleSize:(int)width AndHeight:(int)height;
Step4. Now you can fetch the color for a specific position
-(UIColor*)colorAtX:(int)x_axis andY:(int)y_axis;

Notice

If It will Lead To A Memory Leak
Invoke This Mothod Might Help
-(void)freeMemmory;

Contribution

If you find some bugs about it,please let me know, thank you
More features will come

Screenshot

screenshot1 screenshot2 screenshot3 screenshot4 screenshot5

About

A small class that can get the sample of an image quickly.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published