csharp
public readonly record struct BitmapAn 8-bit RGBA image in memory.
Remarks
Deliberately smaller than TextureData rather than a special case of it. A texture carries a format, a mip chain, layers and faces because a GPU needs all four; a picture somebody is going to look at has none of them, and the only two operations it supports — encode it, compare it against another one — want a flat array and a stride.
One format and no format field, because the alternative is every consumer switching on one. A frame that came off the device in another layout is converted on the way in, at the one place that knows what the device gave it.
Fields and properties (3)
public int WidthIts width in pixels.
public int HeightIts height in pixels.
public byte[] PixelsIts pixels, row-major, four bytes each.
Methods (2)
public Bitmap(int Width, int Height, byte[] Pixels)An 8-bit RGBA image in memory.
public int Offset(int x, int y)The byte offset of a pixel.
Used by (150, showing 40)
- PaintedLayersTestsThirdPersonShooter.Frame.Tests
- BackdropFilterTestsVixen.Ui.Controls.Tests
- BakedMaterialImageTestsVixen.Graphics.Golden.Tests
- BentNormalAmbientImageTestsVixen.Graphics.Golden.Tests
- BorderStylePixelTestsVixen.Ui.Testing.Tests
- CaretBlinkTestsVixen.Ui.Controls.Tests
- CaretColourPixelTestsVixen.Ui.Controls.Tests
- CascadeCountDeviceTestsVixen.Graphics.Golden.Tests
- ClusteredShadingDeviceTestsVixen.Graphics.Golden.Tests
- CompositorImageTestsVixen.Graphics.Golden.Tests
- ControlHarnessVixen.Ui.Controls.Tests
- ControlPaletteCoverageTestsVixen.Ui.Controls.Tests
- ControlThemeVisualTestsVixen.Ui.Controls.Tests
- DebugDrawImageTestsVixen.Graphics.Golden.Tests
- DepthResolveImageTestsVixen.Graphics.Golden.Tests
- DiffuseModelImageTestsVixen.Graphics.Golden.Tests
- DisabledStateTestsVixen.Ui.Controls.Tests
- DistanceFieldAoImageTestsVixen.Graphics.Golden.Tests
- DitherImageTestsVixen.Graphics.Golden.Tests
- EditorGizmoFacingDeviceTestsVixen.Graphics.Golden.Tests
- FillRuleTestsVixen.Ui.Testing.Tests
- FilterBlurTestsVixen.Ui.Controls.Tests
- FilterColourTestsVixen.Ui.Controls.Tests
- FilterDropShadowTestsVixen.Ui.Controls.Tests
- FixtureVixen.Graphics.Golden.Tests
- FontSlantPixelTestsVixen.Ui.Controls.Tests
- GlyphMsdfVisualTestsVixen.Ui.Controls.Tests
- GoldenImageVixen.Graphics.Golden.Tests
- GoldenUpdateTestsVixen.Graphics.Golden.Tests
- GradientPaintTestsVixen.Ui.Controls.Tests
- GraphMaterialImageTestsVixen.Graphics.Golden.Tests
- GroupOpacityTestsVixen.Ui.Controls.Tests
- GtaoImageTestsVixen.Graphics.Golden.Tests
- IconArtTestsVixen.Ui.Controls.Tests
- ImageComparerVixen.Ui.Testing
- IndirectDiffuseImageTestsVixen.Graphics.Golden.Tests
- InlineGradientSlicePixelTestsVixen.Ui.Testing.Tests
- InsetShadowPixelTestsVixen.Ui.Testing.Tests
- IrradianceShadingDeviceTestsVixen.Graphics.Golden.Tests
- LayeredMaterialImageTestsVixen.Graphics.Golden.Tests