다음을 통해 공유


BitmapPalettes.Halftone8Transparent 속성

정의

중복되는 색을 제거한 8가지 기본 색, 16가지 시스템 색 및 추가 투명 색 하나가 들어 있는 색상표를 나타내는 값을 가져옵니다. 이 색상표에는 총 17색이 있습니다.

public:
 static property System::Windows::Media::Imaging::BitmapPalette ^ Halftone8Transparent { System::Windows::Media::Imaging::BitmapPalette ^ get(); };
public static System.Windows.Media.Imaging.BitmapPalette Halftone8Transparent { get; }
member this.Halftone8Transparent : System.Windows.Media.Imaging.BitmapPalette
Public Shared ReadOnly Property Halftone8Transparent As BitmapPalette

속성 값

BitmapPalette

BitmapPalette의 인스턴스입니다.

예제

다음 코드 예제에서는 새 생성 하는 방법을 보여 줍니다 BitmapSource 의 멤버를 사용 하 여는 BitmapPalettes 클래스입니다. 이 예제에서는 사용 하는 방법을 보여 주지만 합니다 WebPalette 속성의 모든 멤버를 사용할 수 있습니다는 BitmapPalettes 비슷한 방식으로 클래스입니다.

BitmapSource image5 = BitmapSource.Create(
    width,
    height,
    96,
    96,
    PixelFormats.Indexed1,
    BitmapPalettes.WebPalette,
    pixels,
    stride);

FileStream stream5 = new FileStream("palette.tif", FileMode.Create);
TiffBitmapEncoder encoder5 = new TiffBitmapEncoder();
encoder5.Frames.Add(BitmapFrame.Create(image5));
encoder5.Save(stream5);
Dim image5 As BitmapSource = System.Windows.Media.Imaging.BitmapSource.Create(width, height, 96, 96, PixelFormats.Indexed1, BitmapPalettes.WebPalette, pixels, stride)

Dim stream5 As New FileStream("palette.tif", FileMode.Create)
Dim encoder5 As New TiffBitmapEncoder()
encoder5.Frames.Add(BitmapFrame.Create(image5))
encoder5.Save(stream5)

설명

BitmapPalettes "Transparent"를 사용 하 여 해당 이름을 엔드 한 "색"을 추가 하는 속성은 완전히 투명 합니다. 256 색이 이미 있는 색상표의 경우 마지막 색 투명 한 색으로 바뀝니다.

적용 대상

추가 정보