WPF – Wie speichere ich ein PNG ohne Alphakanal?C#

Ein Treffpunkt für C#-Programmierer
Anonymous
 WPF – Wie speichere ich ein PNG ohne Alphakanal?

Post by Anonymous »

Ich habe eine BitmapSource. Ich speichere es im PNG-Format wie folgt:

Code: Select all

PngBitmapEncoder enc = new PngBitmapEncoder();
enc.Frames.Add(myBitmapSource);
enc.Save(fs);
Wie kann ich es ohne Alphakanal speichern?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post