CrispImage Class
An Image class that gets its source from the image library and renders it crisply at any DPI setting. This class is sealed to prevent initialization problems stemming from the Created event, which can call outside the class and could result in derived classes not being initialized yet.
Assembly: Microsoft.VisualStudio.Imaging (in Microsoft.VisualStudio.Imaging.dll)
| Name | Description | |
|---|---|---|
![]() | CrispImage() |
| Name | Description | |
|---|---|---|
![]() ![]() | Dpi | Defines the DPI used by the CrispImage objects that are descendants of the element to which this property is attached. If this is 0.0, DefaultDpi is used. |
![]() ![]() | GrayscaleBiasColor | Gets the grayscale bias color used by the CrispImage objects that are descendants of the element to which this property is attached. |
![]() ![]() | HighContrast | Determines whether the CrispImage objects that are descendants of the element to which this property is attached show high-contrast images. |
![]() ![]() | ImageLibrary | Defines the image library used by the CrispImage objects that are descendants of the element to which this property is attached. If this is null, DefaultImageLibrary is used. |
![]() ![]() | ScaleFactor | Gets the ScaleFactor that is used when the image may be scaled using a transform, such as for an image in the editor margin when the zoom != 100%. A ScaleFactor of 1 does no scaling. |
| Name | Description | |
|---|---|---|
![]() ![]() | ActualDpiProperty | Gets the actual DPI, which is a function of DefaultDpi and Dpi. This property ultimately determines the DPI scaling applied to CrispIMages. |
![]() ![]() | ActualGrayscaleBiasColorProperty | The actual grayscale bias. |
![]() ![]() | ActualHighContrastProperty | This is a function of HighContrast and SystemHighContrast. This property ultimately determines whether the image is rendered high-contrast. |
![]() ![]() | ActualImageLibraryProperty | The actual image library is a function of DefaultImageLibrary and ImageLibrary. This property ultimately determines the image library from which images are loaded. |
![]() ![]() | DefaultImageLibraryProperty | Exposes a PropertyInfo for the DefaultImageLibrary property, so that the static property can be used in PropertyPaths for bindings created in code. |
![]() ![]() | DpiProperty | Defines the DPI used by the CrispImages which are descendants of the element to which this property is attached. If this is 0.0, DefaultDpi is used. |
![]() ![]() | GrayscaleBiasColorProperty | Defines the grayscale bias color used by the CrispImage objects that are descendants of the element to which this property is attached. |
![]() ![]() | GrayscaleProperty | Defines the grayscale color used by the CrispImage objects that are descendants of the element to which this property is attached. |
![]() ![]() | HighContrastProperty | Determine whether the CrispImage objects that are descendants of the element to which thisproperty is attached show high-contrast images. The values are as follows: True - Images are high-contrast False - Images are not high-contrast null - Images are displayed according to the system high-contrast setting |
![]() ![]() | ImageLibraryProperty | Defines the image library used by the CrispImage objects that are descendants of the element to which this property is attached. If this is null, DefaultImageLibrary is used. |
![]() ![]() | MonikerProperty | The moniker to use when loading the CrispImage's image from the image library. |
![]() ![]() | ScaleFactorProperty | The ScaleFactor that is used when the image may be scaled using a transform, such as for an image in the editor margin when the zoom != 100%. A ScaleFactor of 1 does no scaling. |
![]() ![]() | SystemHighContrastProperty | The value of SystemParameters.HighContrast. It is defined as a dependency property so that it can be used in a binding to set the value of ActualHighContrast. |
| Name | Description | |
|---|---|---|
![]() ![]() | IQueryAmbient::IsAmbientPropertyAvailable(String^) | (Inherited from FrameworkElement.) |
| Name | Description | |
|---|---|---|
![]() | AcquireWin32Focus(IntPtr) | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | FindAncestor<TAncestorType>() | Overloaded. Finds the first ancestor of a given type in the logical or visual tree.(Defined by ExtensionMethods.) |
![]() | FindAncestorOrSelf<TAncestorType>() | Overloaded. Finds the first ancestor of a given type in the logical or visual tree, or the object itself if it matches in type.(Defined by ExtensionMethods.) |
![]() | FindCommonAncestor(DependencyObject^) | Overloaded. Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | FindDescendant(Predicate<DependencyObject^>^) | Overloaded. Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | FindDescendant<T>() | Overloaded. Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | FindDescendantReverse<T>() | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | FindDescendants<T>() | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | FindDescendantsReverse<T>() | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | GetDeviceActualSize() | Microsoft internal use only.(Defined by DpiHelper.) |
![]() | GetVisualOrLogicalParent() | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | IsClipped() | Determines whether the element's text is clipped by a parent ScrollViewer (the element can still be scrolled to view the clipped text)(Defined by ExtensionMethods.) |
![]() | IsConnectedToPresentationSource() | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | IsLogicalAncestorOf(DependencyObject^) | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | IsTrimmed() | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | TraverseVisualTree<T>(Action<T>^) | Microsoft internal use only.(Defined by ExtensionMethods.) |
![]() | TraverseVisualTreeReverse<T>(Action<T>^) | Microsoft internal use only.(Defined by ExtensionMethods.) |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.








