Vixen
dd8b0a81
csharp
public enum UiImageChannel

Which channel of an image a draw shows, as a grey, or all of them as a colour.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ The numbering is the wire format. Ui.rvn's UiImage stage rounds shape.y to an integer and branches on it, exactly as MaskComposite's own remark describes for the mask buffer — so these values are the contract and not an implementation detail. All is zero because zero is what every image quad in the repository already carries: a command that says nothing about channels has to keep drawing the picture it drew before there was anything to say.

One choice rather than a set of flags, matching Vixen.Ui.Controls.Advanced.ImageChannels, whose own remark argues it: "what is in the green channel" is one channel at a time, and a tool that also wants "what does this look like without its alpha" offers a second control rather than one enum meaning two things.

Fields and properties (5)

  • All

    Colour, with the image's own alpha. What an image drawn into a panel is.

  • Red

    Red alone, as an opaque grey.

  • Green

    Green alone, as an opaque grey.

  • Blue

    Blue alone, as an opaque grey.

  • Alpha

    Alpha alone, as an opaque grey.

Used by (7)

  • ImageViewVixen.Ui.Controls.Advanced
  • ImageViewBarTestsVixen.Ui.Controls.Advanced.Tests
  • ImageViewTestsVixen.Ui.Controls.Advanced.Tests
  • UiImageViewVixen.Ui
  • UiImageViewTestsVixen.Graphics.Golden.Tests
  • UiRavenAgreementTestsVixen.Graphics.Golden.Tests
  • ImageViewBarWiringTestsVixen.Editor.Texturing.Tests