Пример #1
0
        internal NikonThumbnail(NkMAIDImageInfo imageInfo, IntPtr data)
        {
            _stride     = (int)imageInfo.ulRowBytes;
            _width      = (int)imageInfo.szTotalPixels.w;
            _height     = (int)imageInfo.szTotalPixels.h;
            _colorSpace = imageInfo.ulColorSpace;
            _pixels     = new byte[_stride * _height];

            Marshal.Copy(data, _pixels, 0, _pixels.Length);
        }
Пример #2
0
        internal NikonThumbnail(NkMAIDImageInfo imageInfo, IntPtr data)
        {
            _stride = (int)imageInfo.ulRowBytes;
            _width = (int)imageInfo.szTotalPixels.w;
            _height = (int)imageInfo.szTotalPixels.h;
            _colorSpace = imageInfo.ulColorSpace;
            _pixels = new byte[_stride * _height];

            Marshal.Copy(data, _pixels, 0, _pixels.Length);
        }