共用方式為


ImageAttributes Struct

Definition

Provides image attributes.

public value class ImageAttributes
public struct ImageAttributes
type ImageAttributes = struct
Public Structure ImageAttributes
Inheritance
ImageAttributes

Fields

Background

[optional] The background color on which the image will be displayed.

Dpi

The DPI setting for the monitor on which the image will be displayed.

Flags

The flags indicating which fields of the structure are valid.

Format

The format of the image (WPF, WinForms, Win32).

GrayscaleBiasColor

[optional] The bias color used to weight a grayscale image.

HighContrast

[optional] Determines whether the high-contrast version of the image is requested.

ImageType

The type of the image (bitmap, icon, or image list).

LogicalHeight

The height of the image, in logical units (e.g. the height at 100% DPI).

LogicalWidth

The width of the image, in logical units (e.g. the width at 100% DPI).

StructSize

The size of the struct.

Applies to