Kentico 12 Service Pack API Reference
Kentico 12 Service Pack API Reference
Namespaces
CMS Namespaces
CMS.Helpers Namespaces
CMS.Helpers
ImageHelper Class
ImageHelper Methods
CanResizeImage Method
EnsureImageDimensions Method
GetAutoResizeDimensions Method
GetAutoResizeToHeight Method
GetAutoResizeToMaxSideSize Method
GetAutoResizeToWidth Method
GetBytes Method
GetConvertedImage Method
GetConvertedImageData Method
GetFlippedImage Method
GetFlippedImageData Method
GetGrayscaledImage Method
GetGrayscaledImageData Method
GetImage Method
GetImageThumbnailFileName Method
GetImageWithWatermarkData Method
GetPositionEnum Method
GetQRCodeUrl Method
GetResizedImage Method
GetResizedImageData Method
GetResizeEnum Method
GetRotatedImage Method
GetRotatedImageData Method
GetTrimmedImage Method
GetTrimmedImageData Method
ImageFormatToString Method
ImageToBytes Method
IsHtml Method
IsImage Method
IsMimeImage Method
IsSupportedByImageEditor Method
LoadImage Method
StringToImageFormat Method
UnifyFileExtension Method
ImageHelper
GetBytes Method
Gets the binary data for the given image
Namespace:
CMS.Helpers
Assembly:
CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
Copy
public
static
byte
[]
GetBytes
(
Image
img
,
ImageFormat
format
)
Parameters
img
Type:
System.Drawing
Image
Image
format
Type:
System.Drawing.Imaging
ImageFormat
Format of the output
Return Value
Type:
Byte
See Also
Reference
ImageHelper Class
CMS.Helpers Namespace
Copyright (c) 2019 Kentico Software
Send comments on this topic to
support@kentico.com