Picasso
Comment:
- Picasso is an open source library that manages the loading of images in your application.
http://square.github.io/picasso/
Licensed under the Apache License, version 2.0:
http://www.apache.org/licenses/LICENSE-2.0
DefaultTarget
Events:
- Error (Tag As Object)
- Success (Bitmap1 As Bitmap, Tag As Object)
Methods:
- Initialize (EventName As String, Tag As Object)
- IsInitialized As Boolean
Picasso
Methods:
- CancelRequest (ImageView1 As ImageView)
Cancel any existing requests for the specified target ImageView1.
- CancelRequest2 (Target1 As Target)
Cancel any existing requests for the specified Target instance.
- Initialize
- IsDebugging As Boolean
Returns True if debug display, logging, and statistics are enabled.
- IsInitialized As Boolean
- LoadFile (FilePath As String) As RequestBuilder
Start an image request using the specified image file path.
- LoadResource (ResourceName As String) As RequestBuilder
Start an image request using the specified drawable resource.
- LoadUrl (Url As String) As RequestBuilder
Start an image request using the specified URL.
- SetDebugging (Debugging As Boolean)
Set whether debug display, logging, and statistics are enabled.
Permissions:
- android.permission.INTERNET
RequestBuilder
Methods:
- CenterCrop As RequestBuilder
Crops an image inside of the bounds specified by Resize(TargetWidth, TargetHeight) rather than distorting the aspect ratio.
CenterCrop can only be used after calling Resize.
- CenterInside As RequestBuilder
CenterInside can only be used after calling Resize.
- ErrorDrawable (ErrorDrawable As Drawable) As RequestBuilder
Set a Drawable to be used if the requested image could not be loaded.
- ErrorResource (ResourceName As String) As RequestBuilder
Set a drawable resource to be used if the requested image could not be loaded.
- Fetch (Target1 As Target)
Asynchronously fulfils the request into the specified Target1.
- Fit As RequestBuilder
Attempt to resize the image to fit exactly into the target ImageView's bounds.
- Get As BitmapWrapper
Synchronously fulfill this request.
- IntoImageView (ImageView1 As ImageView)
Asynchronously fulfils the request into the specified ImageView.
- IntoTarget (Target1 As Target)
Asynchronously fulfils the request into the specified Target.
See also the RequestBuilder Fetch method.
- IsInitialized As Boolean
- NoFade As RequestBuilder
Disable brief fade in of images loaded from the disk cache or network.
- PlaceholderDrawable (PlaceholderDrawable As Drawable) As RequestBuilder
Set a Drawable to be used while the requested image is being loaded.
- PlaceholderResource (ResourceName As String) As RequestBuilder
Set a drawable resource to be used while the requested image is being loaded.
- Resize (TargetWidth As Int, TargetHeight As Int) As RequestBuilder
Resize the image to the specified size in pixels.
- ResizeDimen (TargetWidthResourceName As String, TargetHeightResourceName As String) As RequestBuilder
Resize the image to the specified resource dimensions size.
- Rotate (Degrees As Float) As RequestBuilder
Rotate the image by the specified degrees.
- Rotate2 (Degrees As Float, PivotX As Float, PivotY As Float) As RequestBuilder
Rotate the image by the specified degrees around the specified pivot point.
- Scale (Factor As Float) As RequestBuilder
Scale the image using the specified factor.
- Scale2 (FactorX As Float, FactorY As Float) As RequestBuilder
Scale the image using the specified factors.
- SkipCache As RequestBuilder
Indicate that this request should not use the memory cache for attempting to load or save the image.
- Transform (Transformation1 As Transformation) As RequestBuilder
Add a custom transformation to be applied to the image.
** The Transformation interface is not currently implemented so this method has no use **