//library/com.uploadcare.android.library.urls/CdnPathBuilder
CdnPathBuilder
[androidJvm] class CdnPathBuilder
Creates a new CDN path builder for some image file.
See also
androidJvm
| Name | Summary |
|---|---|
| com.uploadcare.android.library.api.UploadcareFile.cdnPath |
Parameters
androidJvm
| Name | Summary |
|---|---|
| file | File to be used for the path |
Functions
| Name | Summary |
|---|---|
| blur | [androidJvm] Content fun blur(): CdnPathBuilder fun blur(strength: Int): CdnPathBuilder More info Performs Gaussian blur on result image. |
| build | [androidJvm] Content fun build(): String More info Returns the current CDN path as a string. |
| crop | [androidJvm] Content fun crop(width: Int, height: Int): CdnPathBuilder More info Adds top-left-aligned crop. |
| cropCenter | [androidJvm] Content fun cropCenter(width: Int, height: Int): CdnPathBuilder More info Adds center-aligned crop. |
| cropCenterColor | [androidJvm] Content fun cropCenterColor(width: Int, height: Int, color: String): CdnPathBuilder More info Adds center-aligned crop with a filled background. |
| cropColor | [androidJvm] Content fun cropColor(width: Int, height: Int, color: String): CdnPathBuilder More info Adds top-left-aligned crop with a filled background. |
| equals | [androidJvm] Content open operator fun equals(other: Any?): Boolean |
| flip | [androidJvm] Content fun flip(): CdnPathBuilder More info Flips the image. |
| format | [androidJvm] Content fun format(format: ImageFormat): CdnPathBuilder More info Turn an image to one of the following formats: FORMAT_JPEG or FORMAT_PNG. |
| grayscale | [androidJvm] Content fun grayscale(): CdnPathBuilder More info Adds a grayscale effect. |
| hashCode | [androidJvm] Content open fun hashCode(): Int |
| invert | [androidJvm] Content fun invert(): CdnPathBuilder More info Inverts colors. |
| mirror | [androidJvm] Content fun mirror(): CdnPathBuilder More info Horizontally mirror image. |
| preview | [androidJvm] Content fun preview(width: Int, height: Int): CdnPathBuilder More info Reduces an image proportionally in order to fit it into given dimensions. |
| quality | [androidJvm] Content fun quality(quality: ImageQuality): CdnPathBuilder More info Image quality affects size of image and loading speed. |
| resize | [androidJvm] Content fun resize(width: Int, height: Int): CdnPathBuilder More info Resizes width and height |
| resizeHeight | [androidJvm] Content fun resizeHeight(height: Int): CdnPathBuilder More info Resizes height, keeping the aspect ratio. |
| resizeWidth | [androidJvm] Content fun resizeWidth(width: Int): CdnPathBuilder More info Resizes width, keeping the aspect ratio. |
| scaleCrop | [androidJvm] Content fun scaleCrop(width: Int, height: Int): CdnPathBuilder More info Scales the image until one of the dimensions fits, then crops the bottom or right side. |
| scaleCropCenter | [androidJvm] Content fun scaleCropCenter(width: Int, height: Int): CdnPathBuilder More info Scales the image until one of the dimensions fits, centers it, then crops the rest. |
| sharp | [androidJvm] Content fun sharp(): CdnPathBuilder fun sharp(strength: Int): CdnPathBuilder More info Performs sharpening on result image. |
| toString | [androidJvm] Content open fun toString(): String |