Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foreach (byte b in arr)
- {
- if (W != -1 && H != -1 && range != -1)
- {
- if (R == -1)
- {
- R = (int)(b);
- }
- else if (G == -1)
- {
- G = (int)(b);
- }
- else if (B == -1)
- {
- B = (int)(b);
- bitmap.SetPixel(currentBitW, currentBitH, Color.FromArgb(R, G, B));
- R = -1;
- G = -1;
- B = -1;
- currentBitW++;
- if (currentBitW == W)
- {
- currentBitW = 0;
- currentBitH++;
- }
- }
- }
- else
- {
- //comment
- if (b == (byte)('#'))
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement