Table of Contents

Enum ImageSourceLoadingOptions

Namespace
SharpDX.Direct2D1
Assembly
SharpDX.Direct2D1.dll
[Flags]
public enum ImageSourceLoadingOptions

Fields

CacheOnDemand = 2

Indicates the image source should only populate subregions of the image cache on-demand. You can control this behavior using the EnsureCached and TrimCache methods. This options provides the ability to improve memory usage by only keeping needed portions of the image in memory. This option requires that the image source has a reference to the WIC bitmap source, and is incompatible with D2D1_IMAGE_SOURCE_LOADING_OPTIONS_RELEASE_SOURCE.

None = 0

No options are used.

ReleaseSource = 1

Indicates the image source should release its reference to the WIC bitmap source after it has initialized. By default, the image source retains a reference to the WIC bitmap source for the lifetime of the object to enable quality and speed optimizations for printing. This option disables that optimization.