All Projects → guowilling → SRPictureBrowser

guowilling / SRPictureBrowser

Licence: MIT license
Light-weight and easy-to-extend picture browser. Not rely on any third-party libraries to download and cache picture.

Programming Languages

objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to SRPictureBrowser

Random Image
随机图片服务
Stars: ✭ 118 (+156.52%)
Mutual labels:  picture
Imgpush
Minimalist Self-hosted Image Service for user submitted images in your app
Stars: ✭ 144 (+213.04%)
Mutual labels:  picture
Quick Picture Viewer
🖼️ Lightweight, versatile desktop image viewer for Windows. The best replacement for the default Windows photo viewer.
Stars: ✭ 237 (+415.22%)
Mutual labels:  picture
Tinyrenderer
A brief computer graphics / rendering course
Stars: ✭ 11,776 (+25500%)
Mutual labels:  picture
Picpic
A awesome image host service driven by github pages and github actions.
Stars: ✭ 135 (+193.48%)
Mutual labels:  picture
Recent Images
Do you noticed the new feature of Telegram or Instagram?! They show your latest images when you try to attach or post a picture. So I developed this library the same with lots of customization. Simple way to get all images of device based on date taken, name, id and other customization
Stars: ✭ 182 (+295.65%)
Mutual labels:  picture
Btrfs Heatmap
Visualize the layout of data on your btrfs filesystem over time
Stars: ✭ 110 (+139.13%)
Mutual labels:  picture
free-pic
free-pic 一个第三方免费图床扩展包 free image-hosting
Stars: ✭ 22 (-52.17%)
Mutual labels:  picture
Scrot
SCReenshOT - command line screen capture utility
Stars: ✭ 138 (+200%)
Mutual labels:  picture
Keydecoder
KeyDecoder app lets you use your smartphone or tablet to decode your mechanical keys in seconds.
Stars: ✭ 236 (+413.04%)
Mutual labels:  picture
Fractaljs
A realtime fractal exporer running in the browser
Stars: ✭ 128 (+178.26%)
Mutual labels:  picture
Photato
Photato - The personal Pictures gallery
Stars: ✭ 130 (+182.61%)
Mutual labels:  picture
Medium Zoom
🔎🖼 A JavaScript library for zooming images like Medium
Stars: ✭ 2,799 (+5984.78%)
Mutual labels:  picture
Multipictureview
MultiPictureView 是一个将多张图片组合显示并支持添加和删除的控件
Stars: ✭ 120 (+160.87%)
Mutual labels:  picture
Generatepicture
Select the page content generated picture.仿简书选取页面内容生成分享图片。
Stars: ✭ 242 (+426.09%)
Mutual labels:  picture
V Viewer
Image viewer component for vue, supports rotation, scale, zoom and so on, based on viewer.js
Stars: ✭ 1,776 (+3760.87%)
Mutual labels:  picture
Stereo Vision
This program has been developed as part of a project at the University of Karlsruhe in Germany. The final purpose of the algorithm is to measure the distance to an object by combining two webcams and use them as a Stereo Camera.
Stars: ✭ 160 (+247.83%)
Mutual labels:  picture
interfaces
A diverse set of royalty-free user avatars to be used for marketing graphics and application screenshots.
Stars: ✭ 50 (+8.7%)
Mutual labels:  picture
Exif-Grabber
A python tool that will extract exif data from picture with two methods
Stars: ✭ 31 (-32.61%)
Mutual labels:  picture
Imageglass
🏞 A lightweight, versatile image viewer
Stars: ✭ 3,284 (+7039.13%)
Mutual labels:  picture

SRPictureBrowser

Light-weight and easy-to-extend picture browser. Not rely on any third-party libraries to download and cache picture.

image

Features

  • There are zoom animation effects when showing or dismissing the picture browser.
  • There is cyclic animation effect when loading the network picture.
  • Support kneading or double tapping the view to zoom the picture.
  • Support dragging down the picture to dismiss the picture browser.
  • Support long pressing the picture to evoke other interactive options.

APIs

/**
 Displays a picture browser with pictureModels, currentIndex and delegate.

 @param pictureModels The models which contains SRPictureModel.
 @param currentIndex  The index of model which will show firstly.
 @param delegate      The receiver’s delegate object.
 */
+ (void)sr_showPictureBrowserWithModels:(NSArray *)pictureModels currentIndex:(NSInteger)currentIndex delegate:(id<SRPictureBrowserDelegate>)delegate;

/**
 Creates and returns a model of picture information.

 @param picURLString        The URL string of the picture.
 @param containerView       The super view of the picture view.
 @param positionInContainer The picture view's position in its super view.
 @param index               The index of this picture in all pictures.
 @return A picture model.
 */
+ (instancetype)sr_pictureModelWithPicURLString:(NSString *)picURLString containerView:(UIView *)containerView positionInContainer:(CGRect)positionInContainer index:(NSInteger)index;

Usage

UIImageView *tapedImageView = (UIImageView *)tapGestureRecognizer.view;
NSMutableArray *imageBrowserModels = [[NSMutableArray alloc] init];
for (NSInteger i = 0; i < self.picURLStrings.count; i ++) {
    SRPictureModel *imageBrowserModel = [SRPictureModel sr_pictureModelWithPicURLString:self.picURLStrings[i]
                                                                          containerView:tapedImageView.superview
                                                                    positionInContainer:[self.imageViewFrames[i] CGRectValue]
                                                                                  index:i];
    [imageBrowserModels addObject:imageBrowserModel];
}
[SRPictureBrowser sr_showPictureBrowserWithModels:imageBrowserModels currentIndex:tapedImageView.tag delegate:self];
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].