Used in Sprites and 3D models to draw image textures on screen via .
MaterialView code on GitHub
Inheritance Hierarchy
DeltaEngine.Content ContentData
DeltaEngine.Content Image
DeltaEngine.Graphics.BaseOpenGL11 OpenGL11Image
DeltaEngine.Graphics.BaseOpenGL20 OpenGL20Image
DeltaEngine.Graphics.SharpDX SharpDXImage
DeltaEngine.Graphics.SlimDX SlimDXImage
DeltaEngine.Graphics.Xna VideoImage
DeltaEngine.Graphics.Xna XnaImage
DeltaEngine.Mocks MockImage
DeltaEngine.Tests.Content FakeImage
DeltaEngine.Tests.Content FakeImageContentLoaderTests MockFakeImage
Namespace: DeltaEngine.Content
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The Image type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Image(String) | Initializes a new instance of the Image class | |
Image(ImageCreationData) | Initializes a new instance of the Image class |
Methods
Name | Description | |
---|---|---|
CompareActualSizeMetadataSize | ||
CreateDefault | (Overrides ContentData CreateDefault .) | |
Dispose | (Inherited from ContentData.) | |
DisposeData | (Inherited from ContentData.) | |
Fill(Color) | ||
Fill( Color ) | ||
FillRgbaData |
Fill opaque or alpha images with 4 bytes per pixel (rgba). Using 3 bytes (24bit) is
inefficient and would only work on some platforms that allow it. Use 16 or 8 bit if you want
performance and use compressed textures as well. For small images this works fine.
View code on GitHub | |
InternalCreateDefault | (Inherited from ContentData.) | |
LoadData | (Overrides ContentData LoadData(Stream).) | |
LoadImage | ||
SetSamplerState | ||
SetSamplerStateAndTryToLoadImage | ||
ToString | (Inherited from ContentData.) | |
TryLoadImage | ||
WarnAboutWrongAlphaFormat |
Fields
Name | Description | |
---|---|---|
ContentChanged | (Inherited from ContentData.) |
Properties
Name | Description | |
---|---|---|
AllowCreationIfContentNotFound | (Overrides ContentData AllowCreationIfContentNotFound.) | |
AllowTiling | ||
AtlasImage | ||
BlendMode | ||
DisableLinearFiltering | ||
HasAlpha | ||
IsDisposed | (Inherited from ContentData.) | |
MetaData | (Inherited from ContentData.) | |
Name | (Inherited from ContentData.) | |
PixelSize | ||
RenderingCalculator | ||
UseMipmaps |
See Also