-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a custom type for pixel data to get serialisation correct
- Loading branch information
1 parent
b3a2d57
commit c334d9c
Showing
3 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace BingImageDownload | ||
{ | ||
public class RgbaPixelData | ||
{ | ||
public int X { get; } | ||
public int Y { get; } | ||
public uint RgbaValue { get; } | ||
|
||
public RgbaPixelData(int x, int y, uint rgbaValue) | ||
{ | ||
X = x; | ||
Y = y; | ||
RgbaValue = rgbaValue; | ||
} | ||
} | ||
} |