Example #1
0
        public static byte GetStride(this ChannelType _this, Version version)
        {
            int format    = _this.GetFormat(version);
            int dimention = _this.GetDimention(version);

            return(ChannelInfo.CalculateStride(format, dimention));
        }
Example #2
0
        public static byte GetStride(this ChannelType _this)
        {
            ChannelFormat format    = _this.GetFormat();
            int           dimention = _this.GetDimention();

            return(ChannelInfo.CalculateStride(format, dimention));
        }
Example #3
0
        public static byte GetStride(this ChannelType _this, Version version)
        {
            int format      = _this.GetFormat(version);
            int dimention   = _this.GetDimention(version);
            int elementSize = (4 / (int)Math.Pow(2, format));

            return((byte)(elementSize * dimention));
        }