Click or drag to resize
ImageHelper Methods

The ImageHelper type exposes the following members.

Methods
  NameDescription
Public methodCanResizeImage
Indicates if current image can be resized to the specified dimensions.
Public methodEnsureImageDimensions(Int32, Int32, Int32)
Returns new image dimensions (int[2]: 0 - width, 1 - height) .
Public methodStatic memberEnsureImageDimensions(Int32, Int32, Int32, Int32, Int32)
Computes new image dimensions according to the specified parameters, and returns it.
Public methodStatic memberGetAutoResizeDimensions
Gets dimensions from settings into width, height and max side size parameters.
Public methodStatic memberGetAutoResizeToHeight
Returns HEIGHT the images should be automatically resized to. Value is returned from the site settings.
Public methodStatic memberGetAutoResizeToMaxSideSize
Returns MAX SIDE SIZE the images should be automatically resized to. Value is returned from the site settings.
Public methodStatic memberGetAutoResizeToWidth
Returns WIDTH the images should be automatically resized to. Value is returned from the site settings.
Public methodStatic memberGetBytes
Gets the binary data for the given image
Public methodGetConvertedImage
Transforms image to different format.
Public methodGetConvertedImageData
Transforms image to different format.
Public methodGetFlippedImage
Flips image.
Public methodGetFlippedImageData
Flips image.
Public methodGetGrayscaledImage
Transforms image to grayscale.
Public methodGetGrayscaledImageData
Transforms image to grayscale.
Public methodGetImage
Gets the image based on the file name.
Public methodStatic memberGetImageThumbnailFileName
Returns image thumbnail file name.
Public methodGetImageWithWatermarkData
Gets the image.
Public methodStatic memberGetPositionEnum
Gets the enumeration of the given position string.
Public methodStatic memberGetQRCodeUrl(String, Int32)
Gets the URL for the given QR code
Public methodStatic memberGetQRCodeUrl(String, Int32, String, Int32, String, Int32, String, String)
Gets the URL for the given QR code
Public methodGetResizedImage(Int32)
Returns resized image according to max side size.
Public methodGetResizedImage(Int32, Int32)
Returns resized image.
Public methodGetResizedImageData(Int32, Int32)
Returns resized image as the data array. For quality is used DefaultQuality.
Public methodGetResizedImageData(Int32, Int32, Int32)
Returns resized image as the data array.
Public methodStatic memberGetResizedImageData(HttpPostedFile, Int32, Int32, Int32)
If posted file is image, resizes it to the required dimensions if possible and returns resized data. If it is not image, original data are returned.
Public methodStatic memberGetResizedImageData(Byte, String, Int32, Int32, Int32)
If posted file is image, resizes it to the required dimensions if possible and returns resized data. If it is not image, original data are returned.
Public methodStatic memberGetResizeEnum
Returns image resize enumeration for given string.
Public methodGetRotatedImage
Rotates image by specified angle.
Public methodGetRotatedImageData
Rotates image by specified angle.
Public methodGetTrimmedImage(Int32, Int32, ImageHelperImageTrimAreaEnum)
Trim image by specified area.
Public methodGetTrimmedImage(Int32, Int32, Int32, Int32)
Trim image by specified area.
Public methodGetTrimmedImageData(Int32, Int32, ImageHelperImageTrimAreaEnum)
Trim image by specified area.
Public methodGetTrimmedImageData(Int32, Int32, Int32, Int32)
Crop image by specified area.
Public methodImageFormatToString
Gets image format.
Public methodImageToBytes(Image)
Converts Image to byte array.
Public methodImageToBytes(Image, Int32)
Converts Image to byte array.
Public methodStatic memberIsFlash Obsolete.
Determines whether it is a flash extension or not.
Public methodStatic memberIsHtml
Determines whether it is a html/htm extension or not.
Public methodStatic memberIsImage
Determines whether it is an image extension or not. Accepts extensions in both formats ".gif", and "gif"
Public methodStatic memberIsMimeImage
Determines whether image is an image depending on mimetype.
Public methodStatic memberIsSupportedByImageEditor
Checks if image format is supported by Image Editor.
Public methodLoadImage
Load image data.
Public methodStatic memberStringToImageFormat
Gets string name of image format.
Public methodStatic memberUnifyFileExtension
Unifies file extensions.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
See Also