Skip to content

easyextensionsdrawingextensions ImageExtensions

BigMakCode edited this page Aug 5, 2024 · 1 revision

ImageExtensions Public class

Description

Image extensions.

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph EasyExtensions.Drawing.Extensions
  EasyExtensions.Drawing.Extensions.ImageExtensions[[ImageExtensions]]
  end
Loading

Members

Methods

Public Static methods

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.

Details

Summary

Image extensions.

Methods

FitBluredBackground

public static Image FitBluredBackground(Image image, int targetWidth, int targetHeight, float gaussianBlurLevel)
Arguments
Type Name Description
Image image Target image.
int targetWidth Target width.
int targetHeight Target height.
float gaussianBlurLevel Gaussian blur level (optional).
Summary

Fit image to target size and copy and blur it to background.

Returns

Image with blured background.

SaveAsJpegToArray

public static byte SaveAsJpegToArray(Image image)
Arguments
Type Name Description
Image image Target image.
Summary

Save image as JPEG to byte array.

Returns

Byte array of image.

Generated with ModularDoc

Clone this wiki locally