Guten Abend,
konventionell wird um ein Texture2D-Objekt als Bitmap zu repräsentieren ein MemoryStream generiert und in diesen das Texture2D-Objekt gespeichert und aus diesen
dann ein Bitmap-Objekt generiert.
Das ist jedoch perfomance-technisch sehr ungünstig.
Gibt es eine schnellere und perfomantere Variante das zu realisieren?
Lockbits ist unter anderem eine Möglichkeit; das Problem war jedoch, dass das von .GetData<byte> zurückgegebene Byte-array nicht verwendet werden konnte, um die Pixels in .UnlockBits zu aktualisieren.
Kennt jemand ein Kompromiss?
konventionell wird um ein Texture2D-Objekt als Bitmap zu repräsentieren ein MemoryStream generiert und in diesen das Texture2D-Objekt gespeichert und aus diesen
dann ein Bitmap-Objekt generiert.
Das ist jedoch perfomance-technisch sehr ungünstig.
Gibt es eine schnellere und perfomantere Variante das zu realisieren?
Lockbits ist unter anderem eine Möglichkeit; das Problem war jedoch, dass das von .GetData<byte> zurückgegebene Byte-array nicht verwendet werden konnte, um die Pixels in .UnlockBits zu aktualisieren.
Kennt jemand ein Kompromiss?
Und Gott alleine weiß alles am allerbesten und besser.
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „φConst“ ()