|
Shopify SDK for Unity
|
Represents an image resource. More...
Public Member Functions | |
| ImageQuery (StringBuilder query) | |
| ImageQuery is used to build queries. Typically ImageQuery will not be used directly but instead will be used when building queries from either QueryRootQuery or MutationQuery. More... | |
| ImageQuery | altText () |
| A word or phrase to share the nature or contents of an image. More... | |
| ImageQuery | id () |
| A unique identifier for the image. More... | |
| ImageQuery | originalSrc () |
| The location of the original image as a URL. More... | |
| ImageQuery | src () |
| The location of the image as a URL. More... | |
| ImageQuery | transformedSrc (long? maxWidth=null, long? maxHeight=null, CropRegion? crop=null, long? scale=null, ImageContentType? preferredContentType=null, string alias=null) |
| The location of the transformed image as a URL. More... | |
Represents an image resource.
|
inline |
ImageQuery is used to build queries. Typically ImageQuery will not be used directly but instead will be used when building queries from either QueryRootQuery or MutationQuery.
|
inline |
A word or phrase to share the nature or contents of an image.
|
inline |
A unique identifier for the image.
|
inline |
The location of the original image as a URL.
If there are any existing transformations in the original source URL, they will remain and not be stripped.
|
inline |
The location of the image as a URL.
src field. This could either return the original image location or a URL that contained transformations such as sizing or scale.These transformations were specified by arguments on the parent field.
Now an image has two distinct URL fields: originalSrc and transformedSrc.
originalSrc - the original unmodified image URLtransformedSrc - the image URL with the specified transformations includedTo migrate to the new fields, image transformations should be moved from the parent field to transformedSrc.
Before:
After:
|
inline |
The location of the transformed image as a URL.
All transformation arguments are considered "best-effort". If they can be applied to an image, they will be. Otherwise any transformations which an image type does not support will be ignored.
| maxWidth | Image width in pixels between 1 and 5760. |
| maxHeight | Image height in pixels between 1 and 5760. |
| crop | Crops the image according to the specified region. |
| scale | Image size multiplier for high-resolution retina displays. Must be between 1 and 3. |
| preferredContentType | Best effort conversion of image into content type (SVG -> PNG, Anything -> JGP, Anything -> WEBP are supported). |