Image Generator SDK  4.24.0
The Image Generator SDK provides a library to generate QR codes and CrontoSign images
ImageResponse Class Reference

Main class of ImageResponses More...

Inherits IDisposable.

Inherited by BWQRCodeResponse, and CrontoImageResponse.

Public Member Functions

void SaveImage (string filePath)
 Saves image file.
Supported file extensions

  • .jpeg
  • .jpg
  • .jpe
  • .jif
  • .jfif
  • .jfi
  • .png
  • .webp
More...
 
void Dispose ()
 Disposes SKBitmap More...
 

Protected Member Functions

 ImageResponse (SKBitmap imageBitmap)
 Constructs a ImageResponse object from the image in parameter. More...
 
virtual void Dispose (bool disposing)
 Disposes SKBitmap More...
 

Protected Attributes

bool _isDisposed = false
 Gets or sets a value indicating whether the object has already been disposed. More...
 

Properties

SKBitmap ImageBitmap [get, protected set]
 Contains image More...
 

Detailed Description

Main class of ImageResponses

Constructor & Destructor Documentation

◆ ImageResponse()

ImageResponse ( SKBitmap  imageBitmap)
protected

Constructs a ImageResponse object from the image in parameter.

Parameters
imageBitmapSkiaSharp bitmap

Member Function Documentation

◆ Dispose() [1/2]

void Dispose ( )

Disposes SKBitmap

◆ Dispose() [2/2]

virtual void Dispose ( bool  disposing)
protectedvirtual

Disposes SKBitmap

Reimplemented in BWQRCodeResponse.

◆ SaveImage()

void SaveImage ( string  filePath)

Saves image file.
Supported file extensions

  • .jpeg
  • .jpg
  • .jpe
  • .jif
  • .jfif
  • .jfi
  • .png
  • .webp

Parameters
filePathPath where file will be saved e.g. images/myimage.png
Exceptions
AccessViolationExceptionWhen ImageResponse is disposed.
ArgumentNullExceptionWhen provided filePath is empty.

Field Documentation

◆ _isDisposed

bool _isDisposed = false
protected

Gets or sets a value indicating whether the object has already been disposed.

Property Documentation

◆ ImageBitmap

SKBitmap ImageBitmap
getprotected set

Contains image


The documentation for this class was generated from the following file: