-
WritePixelsC#/기초 2021. 12. 24. 12:15
public void WritePixels (System.Windows.Int32Rect sourceRect, Array pixels, int stride, int offset);
Parameters
offsetInt32The input buffer offset.
//The stride value is calculated as the number of bytes per "pixel line" in the write rectangle:
//픽셀 라인당 바이트수로 계산
//32x32 Rect에서 width(32)*픽셀라인바이트수(픽셀당비트/8 = 1byte)
//stride = width * bytes per pixel. ( 8bit = 1byte => BitsPerPixel/8 = BytePerPixel)
728x90'C# > 기초' 카테고리의 다른 글
[C#]LINQ (0) 2022.02.21 [C#]문법 (0) 2022.02.18 [C#]WPF Serial Port (0) 2021.12.21 [C#] ??, ?. 연산자 ( Nullable) Null 널 (0) 2021.12.16 Delegate, Event, Action (0) 2021.12.14 댓글