Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct IHDR{
- align(1):
- ubyte[4] Width_;
- @property uint Width() {
- return bigEndianToNative!uint(Width_);
- }
- @property void Width(uint v) {
- Width_ = nativeToBigEndian!uint(v);
- }
- ubyte[4] Height_;
- @property uint Height() {
- return bigEndianToNative!uint(Height_);
- }
- @property void Height(uint v) {
- Height_ = nativeToBigEndian!uint(v);
- }
- ubyte[1] BitDepth_;
- @property IHDR_BitDepth BitDepth() {
- return *cast(IHDR_BitDepth*)bigEndianToNative!ubyte(BitDepth_);
- }
- @property void BitDepth(IHDR_BitDepth v) {
- BitDepth_ = v;
- }
- ubyte[1] ColorType_;
- @property IHDR_ColorType ColorType() {
- return *cast(IHDR_ColorType*)bigEndianToNative!ubyte(ColorType_);
- }
- @property void ColorType(IHDR_ColorType v) {
- ColorType_ = v;
- }
- ubyte[1] CompressionMethod_;
- @property IHDR_CompressionMethod CompressionMethod() {
- return *cast(IHDR_CompressionMethod*)bigEndianToNative!ubyte(CompressionMethod_);
- }
- @property void CompressionMethod(IHDR_CompressionMethod v) {
- CompressionMethod_ = v;
- }
- ubyte[1] FilterMethod_;
- @property IHDR_FilterMethod FilterMethod() {
- return *cast(IHDR_FilterMethod*)bigEndianToNative!ubyte(FilterMethod_);
- }
- @property void FilterMethod(IHDR_FilterMethod v) {
- FilterMethod_ = v;
- }
- ubyte[1] InterlaceMethod_;
- @property IHDR_InterlaceMethod InterlaceMethod() {
- return *cast(IHDR_InterlaceMethod*)bigEndianToNative!ubyte(InterlaceMethod_);
- }
- @property void InterlaceMethod(IHDR_InterlaceMethod v) {
- InterlaceMethod_ = v;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement