ImageExtensions Class

Definition

Namespace: PCBI_API_Extensions.Extensions
Assembly: PCBI.API_Library (in PCBI.API_Library.dll) Version: 17.0.0.0 (17.0.0.0)
C#
public static class ImageExtensions
Inheritance
Object    ImageExtensions

Methods

GetFileExtension 
MixAlphaIntoRgb Removes the transparency from an image, by drawing it onto a solid colored background. Uses "CompositingMode.SourceOver" to mix the alpha channel of the image with its rgb channels. ** only needed for image formats where the alpha channel is not considered (e.g. jpg) **
Resize 
ScaleDownPreservingAspectRatio 
ToBase64 
ToBase64AsJpg 
ToByteArray 
ToByteArrayAsJpg 
ToImage 

See Also