ThreadSafeImageContainer Class

Represents a thread-safe container for bitmap images.

Definition

Namespace: SMath.Manager
Assembly: SMath.Manager (in SMath.Manager.dll) Version: 1.73.9126.0
C#
public class ThreadSafeImageContainer
Inheritance
Object    ThreadSafeImageContainer
Derived

Constructors

ThreadSafeImageContainer() Default constructor of the ThreadSafeImageContainer class.
ThreadSafeImageContainer(ThreadSafeImageContainer) Constructs ThreadSafeImageContainer which takes its options from the specified container.

Properties

Exists Determines whether the optimized image exists or not.
Size Size of the original image.

Methods

DrawImage Draws the original or optimized image on the given surface/bounds and based on the given parameter.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetImageCopy Gets a copy of the original or optimized image based on the given parameter.
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
SetImage Sets the image to the current ThreadSafeImageContainer instance and performs required scaling optimizations.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Fields

imageLock Object instance which is used for synchronization.
optimizedImage Stores optimized image.
originalImage Stores original image.

See Also