Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 byte[] 的原始像素数据。如何访问 GTK# DrawingArea 的像素并分配数据?
byte[] pixels = new byte[width * height * 4]; // ... Gdk.GC gc = new Gdk.GC(drawingArea.GdkWindow); drawingArea.GdkWindow.DrawRgb32Image(gc, 0, 0, width, height, RgbDither.None, pixels, width * 4);