/// <summary> /// Constructor of <see cref="ImageAction"></see> /// </summary> /// <param name="width">Width to resize</param> /// <param name="height">Height to resize</param> /// <param name="imageTransformationType">Transformation to apply to the image</param> /// <param name="imageQualityPercentage">Minimum quality for the converted image (between 0 and 100)</param> /// <param name="embedsRGB">Embed color space</param> public ImageAction(float width, float height, ImageTransformationType imageTransformationType, long imageQualityPercentage, bool embedsRGB = false) { Height = height; Width = width; Size = (int)width; ImageTransformationType = imageTransformationType; ImageQualityPercentage = imageQualityPercentage; EmbedsRGB = embedsRGB; }
/// <summary> /// Constructor of <see cref="ImageAction"></see> /// </summary> /// <param name="size">Size in pixels of the width and height of the result image</param> /// <param name="imageTransformationType">Transformation to apply to the image</param> /// <param name="imageQualityPercentage">Minimum quality for the converted image (between 0 and 100)</param> /// <param name="embedsRGB">Embed color space</param> public ImageAction(int size, ImageTransformationType imageTransformationType, long imageQualityPercentage, bool embedsRGB = false) { Size = size; Width = size; Height = size; ImageTransformationType = imageTransformationType; ImageQualityPercentage = imageQualityPercentage; EmbedsRGB = embedsRGB; }