ImageLibrary Class

Visual Studio 2015
 

Namespace:   Microsoft.VisualStudio.Imaging
Assembly:  Microsoft.VisualStudio.Imaging (in Microsoft.VisualStudio.Imaging.dll)


[GuidAttribute("8fa80f44-0b82-4a81-9264-ca9e36fa70e4")]
public ref class ImageLibrary : DisposableObject

NameDescription
System_CAPS_pubmethodImageLibrary(Boolean, ITracer^)

Initializes a new instance of an ImageLibrary object.

NameDescription
System_CAPS_pubpropertyAlternateDebugColor

Gets the alternate color of the border rendered in debug mode.

System_CAPS_pubpropertyCachedImageCount

Gets the number of images that are being stored in the image cache.

System_CAPS_pubpropertyDebugColor

Gets the color of the border rendered in debug mode’

System_CAPS_pubpropertyDebugMode

Determines whether or not images should be rendered in debug mode, which adds a colored border.

System_CAPS_pubpropertySystem_CAPS_staticDefault

Gets the default instance of ImageLibrary.

System_CAPS_pubpropertyIsCaching

Indicates whether the library is caching its contents.

System_CAPS_pubpropertyIsDisposed

This API supports the product infrastructure and is not intended to be used directly from your code. Returns whether the object has been disposed once, which protects against double disposal.(Inherited from DisposableObject.)

System_CAPS_pubpropertyTracer

Gets the tracer for the library.

NameDescription
System_CAPS_pubmethodAddCustomCompositeImage(Int16Size, array<ImageCompositionLayer>^)

Creates a custom image that is composed of multiple other images, and adds that image to the library.

System_CAPS_pubmethodAddCustomImage(ImageSource^, Boolean)

Adds a custom image to the library, directly via an already-created ImageSource.

System_CAPS_pubmethodAddCustomImageList(array<ImageMoniker>^)

Adds a custom image list to the library.

System_CAPS_pubmethodSystem_CAPS_staticDeserialize(Stream^, Boolean, ITracer^, IStreamStorage<String^>^)

Deserializes an image library from stream.

System_CAPS_pubmethodDispose()

This API supports the product infrastructure and is not intended to be used directly from your code. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from DisposableObject.)

System_CAPS_protmethodDispose(Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Standard virtual overload for IDisposable pattern.(Inherited from DisposableObject.)

System_CAPS_protmethodDisposeManagedResources()

Disposes the managed resources.(Overrides DisposableObject::DisposeManagedResources().)

System_CAPS_protmethodDisposeNativeResources()

This API supports the product infrastructure and is not intended to be used directly from your code. Allows derived classes to provide custom dispose handling for native resources.(Inherited from DisposableObject.)

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

This API supports the product infrastructure and is not intended to be used directly from your code. Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from DisposableObject.)

System_CAPS_pubmethodGetCacheSize(Int64, Int64)

Get the number bytes are actually used by the cache.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetImage(ImageMoniker, ImageAttributes)

Returns an image conforming to attributes from the library.

System_CAPS_pubmethodGetImageCount()

The total number of images in the library. Determining the count may be expensive for custom images, which are stored weakly.

System_CAPS_pubmethodGetImageListCount()

The total number of image lists in the library. Determining the count may be expensive for custom images, which are stored weakly.

System_CAPS_pubmethodGetImageListMonikers()

Gets the monikers of all the image lists in the library.

System_CAPS_pubmethodGetImageListMonikers(ImageMoniker)

Gets the monikers of all the image lists in the library.

System_CAPS_pubmethodGetImageMonikers()

Gets the monikers of all of the images in the library.

System_CAPS_pubmethodGetImageMonikerType(ImageMoniker)

Determines whether the ImageMoniker was added as a custom image, loaded from manifest, or neither, meaning we don't have an image with that moniker.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticLoad(IEnumerable<String^>^, Boolean, ITracer^, IStreamStorage<String^>^)

Loads an ImageLibrary from a collection of manifests.

System_CAPS_pubmethodSystem_CAPS_staticLoad(String^, Boolean, ITracer^, IStreamStorage<String^>^)

Loads an ImageLibrary from a manifest.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodRemoveCustomImage(IImageHandle^)

Removes a custom image from the library. The image must have been added by AddCustomImage.

System_CAPS_pubmethodRemoveCustomImageList(IImageHandle^)

Removes a custom image list from the library. The image must have been added by AddCustomImageList.

System_CAPS_pubmethodSerialize(Stream^)

Serializes the image library to stream.

System_CAPS_protmethodThrowIfDisposed()

This API supports the product infrastructure and is not intended to be used directly from your code. Throws an ObjectDisposedException if this object has been disposed.(Inherited from DisposableObject.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodTryGetMonikerForExtension(String^, Boolean, ImageMoniker)

Attempts to get the moniker for the image to use for files whose extension matches extension. If we haven't already identified the image to use, we'll attempt to identify it using the DefaultIcon property of the registered ProgID for the extension.

System_CAPS_pubmethodTryGetMonikerForProgId(String^, Boolean, ImageMoniker)

Attempts to get the moniker for the image to use for files matching progId. If we haven't already identified the image to use, we'll attempt to identify it using the DefaultIcon property of progId.

NameDescription
System_CAPS_pubfieldBeforeImageRealized

Raised before an image is realized from it source. If the image is realized by retrieving it from the cache, this event is not raised.

System_CAPS_pubfieldSystem_CAPS_staticDefaultGrayscaleBiasColor

The default color for biasing grayscale images (#40FFFFFF). This produces a 75% translucent effect.

System_CAPS_pubfieldSystem_CAPS_staticHighContrastGrayscaleBiasColor

The color for biasing grayscale images when in high-contrast mode.

System_CAPS_pubfieldSystem_CAPS_staticInvalidImageMoniker

The invalid image moniker. Images using this moniker cannot be loaded from an image manifest.

System_CAPS_pubfieldSystem_CAPS_staticNeutralSize

The size to use when specifying a size-neutral image in a call to AddCustomImage. The size-neutral image is the image that is scaled to the requested size when an image of the requested size is not available.

NameDescription
System_CAPS_pubeventBuildLibraryCache

Raised when the library cache is built.

System_CAPS_pubeventDisposing

This API supports the product infrastructure and is not intended to be used directly from your code. Raised when the event is being disposed, that is, while it is still accessible.(Inherited from DisposableObject.)

System_CAPS_pubeventSystem_CAPS_staticImageLibraryCreated

Raised when the ImageLibrary is created.

System_CAPS_pubeventSystem_CAPS_staticImageLibraryDisposed

Raised when the ImageLibrary is disposed.

System_CAPS_pubeventProcessManifest

Raised when there is a process manifest.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: