-
Notifications
You must be signed in to change notification settings - Fork 0
easyextensionsdrawingextensions ImageExtensions
BigMakCode edited this page Aug 5, 2024
·
1 revision
Image extensions.
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph EasyExtensions.Drawing.Extensions
EasyExtensions.Drawing.Extensions.ImageExtensions[[ImageExtensions]]
end
Returns | Name |
---|---|
Image |
FitBluredBackground (Image image, int targetWidth, int targetHeight, float gaussianBlurLevel)Fit image to target size and copy and blur it to background. |
byte``[] |
SaveAsJpegToArray (Image image)Save image as JPEG to byte array. |
Image extensions.
public static Image FitBluredBackground(Image image, int targetWidth, int targetHeight, float gaussianBlurLevel)
Type | Name | Description |
---|---|---|
Image |
image | Target image. |
int |
targetWidth | Target width. |
int |
targetHeight | Target height. |
float |
gaussianBlurLevel | Gaussian blur level (optional). |
Fit image to target size and copy and blur it to background.
Image with blured background.
public static byte SaveAsJpegToArray(Image image)
Type | Name | Description |
---|---|---|
Image |
image | Target image. |
Save image as JPEG to byte array.
Byte array of image.
Generated with ModularDoc