ImagePixelExtractor.cs (27)
166ImagePixelExtractingEstimator.ColorBits colorsToExtract = ImagePixelExtractingEstimator.Defaults.Colors,
503/// <seealso cref="ImageEstimatorsCatalog.ExtractPixels(TransformsCatalog, string, string, ColorBits, ColorsOrder, bool, float, float, bool)" />
510public const ColorBits Colors = ColorBits.Rgb;
543internal static void GetOrder(ColorsOrder order, ColorBits colors, out int a, out int r, out int b, out int g)
557if ((colors & ColorBits.Alpha) != 0)
561if ((colors & ColorBits.Red) != 0)
565if ((colors & ColorBits.Blue) != 0)
569if ((colors & ColorBits.Green) != 0)
589public readonly ColorBits ColorsToExtract;
618if (item.UseAlpha ?? options.UseAlpha) { ColorsToExtract |= ColorBits.Alpha; Planes++; }
619if (item.UseRed ?? options.UseRed) { ColorsToExtract |= ColorBits.Red; Planes++; }
620if (item.UseGreen ?? options.UseGreen) { ColorsToExtract |= ColorBits.Green; Planes++; }
621if (item.UseBlue ?? options.UseBlue) { ColorsToExtract |= ColorBits.Blue; Planes++; }
656ColorBits colorsToExtract = Defaults.Colors,
669if ((ColorsToExtract & ColorBits.Alpha) == ColorBits.Alpha) Planes++;
670if ((ColorsToExtract & ColorBits.Red) == ColorBits.Red) Planes++;
671if ((ColorsToExtract & ColorBits.Green) == ColorBits.Green) Planes++;
672if ((ColorsToExtract & ColorBits.Blue) == ColorBits.Blue) Planes++;
708ColorsToExtract = (ImagePixelExtractingEstimator.ColorBits)ctx.Reader.ReadByte();
710Contracts.CheckDecode((ColorsToExtract & ImagePixelExtractingEstimator.ColorBits.All) == ColorsToExtract);
754Contracts.Assert((ColorsToExtract & ImagePixelExtractingEstimator.ColorBits.All) == ColorsToExtract);
784ColorBits colorsToExtract = Defaults.Colors,