NanoByte.Common  2.8.1
NanoByte.Common.Drawing.ScalableImage Class Reference

Wraps an Image and provides and caches scaled versions of it. More...

Inheritance diagram for NanoByte.Common.Drawing.ScalableImage:

Public Member Functions

 ScalableImage (Image image)
 Creates a new scalable image. More...
 
Image Get (float factor)
 Returns a copy of the base image scaled by the specified factor . More...
 
void Dispose ()
 Disposes the base image and any scaled images returned by Get. More...
 

Detailed Description

Wraps an Image and provides and caches scaled versions of it.

Constructor & Destructor Documentation

◆ ScalableImage()

NanoByte.Common.Drawing.ScalableImage.ScalableImage ( Image  image)
inline

Creates a new scalable image.

Parameters
imageThe base image.

Member Function Documentation

◆ Dispose()

void NanoByte.Common.Drawing.ScalableImage.Dispose ( )
inline

Disposes the base image and any scaled images returned by Get.

◆ Get()

Image NanoByte.Common.Drawing.ScalableImage.Get ( float  factor)

Returns a copy of the base image scaled by the specified factor .


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