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: 13.0.131
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