Click or drag to resize
ImageHelperImageToBytes Method (Image, Int32)
Converts Image to byte array.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public byte[] ImageToBytes(
	Image img,
	int quality
)

Parameters

img
Type: System.DrawingImage
Image object
quality
Type: SystemInt32
Quality for JPG images

Return Value

Type: Byte
See Also