All Projects → EvilBT → Hdimageview

EvilBT / Hdimageview

Licence: apache-2.0
一个加载高清大图支持缩放的控件

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Hdimageview

Draggableimageviewer
大图浏览 & 图片查看&拖拽退出。类似于微信、B站的图片 & 视频浏览器。
Stars: ✭ 153 (+42.99%)
Mutual labels:  image, image-viewer
Agrume
🍋 A lemony fresh iOS image viewer written in Swift.
Stars: ✭ 449 (+319.63%)
Mutual labels:  image, image-viewer
Silentbox
A lightbox inspired Vue.js component.
Stars: ✭ 196 (+83.18%)
Mutual labels:  image, image-viewer
Oblique
With Oblique explore new styles of displaying images
Stars: ✭ 633 (+491.59%)
Mutual labels:  image, image-viewer
Quick Picture Viewer
🖼️ Lightweight, versatile desktop image viewer for Windows. The best replacement for the default Windows photo viewer.
Stars: ✭ 237 (+121.5%)
Mutual labels:  image, image-viewer
Viewerjs
JavaScript image viewer.
Stars: ✭ 6,270 (+5759.81%)
Mutual labels:  image, image-viewer
React Modal Image
A tiny React component providing modal image Lightbox.
Stars: ✭ 97 (-9.35%)
Mutual labels:  image
File Icon
Get the icon of a file or app as a PNG image (macOS)
Stars: ✭ 100 (-6.54%)
Mutual labels:  image
Lightbox
🌌 A convenient and easy to use image viewer for your iOS app
Stars: ✭ 1,334 (+1146.73%)
Mutual labels:  image
Img
🖼Image hosting powered by laravel
Stars: ✭ 92 (-14.02%)
Mutual labels:  image
Icat
icat (Image cat) outputs images in 256-color capable terminals.
Stars: ✭ 106 (-0.93%)
Mutual labels:  image
Bimg
Go package for fast high-level image processing powered by libvips C library
Stars: ✭ 1,394 (+1202.8%)
Mutual labels:  image
Imgnotes
Extension of the jQuery imgViewer plugin to add markers and notes to the image
Stars: ✭ 98 (-8.41%)
Mutual labels:  image
Pimg
📷 Mini Image Lazy Loader for P(R)eact and Vue
Stars: ✭ 97 (-9.35%)
Mutual labels:  image
Lipo
👄 Free image manipulation API service built on top of Sharp (an alternative to Jimp, Graphics Magic, Image Magick, and PhantomJS)
Stars: ✭ 101 (-5.61%)
Mutual labels:  image
React Native Image Fit
Image Viewer component for RN, similar to Facebook or LinkedIn
Stars: ✭ 96 (-10.28%)
Mutual labels:  image-viewer
Vscam
Photography, Communication & Share - Minimalist picture sharing app.
Stars: ✭ 105 (-1.87%)
Mutual labels:  image
Pix Image Viewer
Desktop image viewer. View thousands of images in a zoomable, pannable grid.
Stars: ✭ 96 (-10.28%)
Mutual labels:  image-viewer
Hdc.caffe
Complete Code for "Hard-Aware-Deeply-Cascaded-Embedding"
Stars: ✭ 98 (-8.41%)
Mutual labels:  image
Qr Code With Logo
带头像(logo)的二维码(qrcode)生成工具,无jQuery依赖,自由调整大小
Stars: ✭ 104 (-2.8%)
Mutual labels:  image

HDImageView

License Download

HD image view supporting pan and zoom, with very little memory usage and full featured image loading choices.

Requires Android SDK version 14 or higher.

Demo

Demo

Getting started

Step 1. Add the dependency

dependencies {
    implementation 'xyz.zpayh:hdimageview:3.0.1'

    // 以下可以选用

    // if you use Glide 4.x , you can compile :(如果你正在使用Glide 4.0或以上的版本,你可以添加下面的库)
    implementation 'xyz.zpayh:hdimageview-glide:3.0.0'
    implementation 'com.github.bumptech.glide:glide:4.9.0'

    // if you use Fresco 1.4.x , you can compile :(如果你正在使用Fresco 2.0.0或以上的版本,你可以添加下面的库)
    implementation 'com.facebook.fresco:fresco:2.0.0'
    
    implementation 'xyz.zpayh:hdimageview-fresco:3.0.0'
}

Step 2. Add the view to your layout XML

<xyz.zpayh.hdimage.HDImageView
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/image"
    android:layout_width="match_parent"
    android:layout_height="match_parent"/>

Step 3. Set URI to HDImageView

    //...
    HDImageView mImageView = (HDImageView) findViewById(R.id.image);

    mImageView.setImageURI("res:///"+R.drawable.panorama);
    // Or 
    ImageSource imageSource = ImageSourceBuilder.newBuilder()
                .setUri(R.drawable.panorama)
                .build();
    mImageView.setImageSource(imageSource);

Supported URIs

HDImageView supports images in a variety of locations.

HDImageView does not accept relative URIs. All URIs must be absolute and must include the scheme.

These are the URI schemes accepted:

TYPE SCHEME FETCH METHOD USED
File on network http://, https:// HttpURLConnection
File on device file:// FileInputStream
Content provider content:// ContentResolver
Asset in app asset:/// AsseManager
Resource in app res:// as in res:///12345 Resources.openRawResource

Like this:

mHDImageView.setImageURI("res:///"+R.drawable.panorama);
mHDImageView.setImageURI("asset://beauty.jpg");
mHDImageView.setImageURI("file:///sdcard/DCIM/IMG_001.JPG");
mHDImageView.setImageURI("http://7xi8d6.com1.z0.glb.clouddn.com/2017-04-16-17934400_1738549946443321_2924146161843437568_n.jpg");
//....

In the use of the process, please remember to add the appropriate permissions

About

Powered by Subsampling Scale Image View

Copyright 2016 David Morrissey, and licensed under the Apache License, Version 2.0. No attribution is necessary but it's very much appreciated. Star this project if you like it!

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].