C# Class FlatRedBall.Graphics.Texture.ImageData

Afficher le fichier Open project: vchelaru/FlatRedBall Class Usage Examples

Méthodes publiques

Méthode Description
ApplyColorOperation ( ColorOperation colorOperation, System.Drawing.Color appliedColor ) : void
ApplyColorOperation ( ColorOperation colorOperation, float red, float green, float blue, float alpha ) : void
Blit ( ImageData source, System.Drawing.Rectangle sourceRectangle, System.Drawing.Point destination ) : void
Blit ( Microsoft.Xna.Framework.Graphics.Texture2D source, System.Drawing.Rectangle sourceRectangle, System.Drawing.Point destination ) : void
CopyFrom ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D ) : void
CopyTo ( ImageData destination, int xOffset, int yOffset ) : void
ExpandIfNecessary ( int desiredWidth, int desiredHeight ) : void
Fill ( System.Drawing.Color fillColor ) : void
Fill ( System.Drawing.Color fillColor, System.Drawing.Rectangle rectangle ) : void
FlipHorizontal ( ) : void
FlipVertical ( ) : void
FromTexture2D ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D ) : ImageData
GetPixelColor ( int x, int y ) : System.Drawing.Color
GetXAndY ( int absoluteIndex, int &x, int &y ) : void
ImageData ( int width, int height ) : System
ImageData ( int width, int height, System.Drawing.Color data ) : System
ImageData ( int width, int height, byte data ) : System
RemoveColumn ( int columnToRemove ) : void
RemoveColumns ( IList columnsToRemove ) : void
RemoveRow ( int rowToRemove ) : void

Removes the index row from the contained data. Row 0 is the top of the texture.

RemoveRows ( IList rowsToRemove ) : void
Replace ( System.Drawing.Color oldColor, System.Drawing.Color newColor ) : void
RotateClockwise90 ( ) : void
SetDataDimensions ( int desiredWidth, int desiredHeight ) : void
SetPixel ( int x, int y, System.Drawing.Color color ) : void
ToTexture2D ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
ToTexture2D ( bool generateMipmaps ) : Microsoft.Xna.Framework.Graphics.Texture2D
ToTexture2D ( bool generateMipmaps, Microsoft.DirectX.Direct3D.Device graphicsDevice ) : Microsoft.Xna.Framework.Graphics.Texture2D
ToTexture2D ( Microsoft.Xna.Framework.Graphics.Texture2D textureToFill ) : void

Private Methods

Méthode Description
MakePremultiplied ( ) : void
MakePremultiplied ( int count ) : void
ToTexture2D ( System.Drawing.Color pixelData, int textureWidth, int textureHeight ) : Microsoft.Xna.Framework.Graphics.Texture2D
ToTexture2D ( System.Drawing.Color pixelData, int textureWidth, int textureHeight, bool generateMipmaps, Microsoft.DirectX.Direct3D.Device graphicsDevice ) : Microsoft.Xna.Framework.Graphics.Texture2D

Method Details

ApplyColorOperation() public méthode

public ApplyColorOperation ( ColorOperation colorOperation, System.Drawing.Color appliedColor ) : void
colorOperation ColorOperation
appliedColor System.Drawing.Color
Résultat void

ApplyColorOperation() public méthode

public ApplyColorOperation ( ColorOperation colorOperation, float red, float green, float blue, float alpha ) : void
colorOperation ColorOperation
red float
green float
blue float
alpha float
Résultat void

Blit() public méthode

public Blit ( ImageData source, System.Drawing.Rectangle sourceRectangle, System.Drawing.Point destination ) : void
source ImageData
sourceRectangle System.Drawing.Rectangle
destination System.Drawing.Point
Résultat void

Blit() public méthode

public Blit ( Microsoft.Xna.Framework.Graphics.Texture2D source, System.Drawing.Rectangle sourceRectangle, System.Drawing.Point destination ) : void
source Microsoft.Xna.Framework.Graphics.Texture2D
sourceRectangle System.Drawing.Rectangle
destination System.Drawing.Point
Résultat void

CopyFrom() public méthode

public CopyFrom ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D ) : void
texture2D Microsoft.Xna.Framework.Graphics.Texture2D
Résultat void

CopyTo() public méthode

public CopyTo ( ImageData destination, int xOffset, int yOffset ) : void
destination ImageData
xOffset int
yOffset int
Résultat void

ExpandIfNecessary() public méthode

public ExpandIfNecessary ( int desiredWidth, int desiredHeight ) : void
desiredWidth int
desiredHeight int
Résultat void

Fill() public méthode

public Fill ( System.Drawing.Color fillColor ) : void
fillColor System.Drawing.Color
Résultat void

Fill() public méthode

public Fill ( System.Drawing.Color fillColor, System.Drawing.Rectangle rectangle ) : void
fillColor System.Drawing.Color
rectangle System.Drawing.Rectangle
Résultat void

FlipHorizontal() public méthode

public FlipHorizontal ( ) : void
Résultat void

FlipVertical() public méthode

public FlipVertical ( ) : void
Résultat void

FromTexture2D() public static méthode

public static FromTexture2D ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D ) : ImageData
texture2D Microsoft.Xna.Framework.Graphics.Texture2D
Résultat ImageData

GetPixelColor() public méthode

public GetPixelColor ( int x, int y ) : System.Drawing.Color
x int
y int
Résultat System.Drawing.Color

GetXAndY() public méthode

public GetXAndY ( int absoluteIndex, int &x, int &y ) : void
absoluteIndex int
x int
y int
Résultat void

ImageData() public méthode

public ImageData ( int width, int height ) : System
width int
height int
Résultat System

ImageData() public méthode

public ImageData ( int width, int height, System.Drawing.Color data ) : System
width int
height int
data System.Drawing.Color
Résultat System

ImageData() public méthode

public ImageData ( int width, int height, byte data ) : System
width int
height int
data byte
Résultat System

RemoveColumn() public méthode

public RemoveColumn ( int columnToRemove ) : void
columnToRemove int
Résultat void

RemoveColumns() public méthode

public RemoveColumns ( IList columnsToRemove ) : void
columnsToRemove IList
Résultat void

RemoveRow() public méthode

Removes the index row from the contained data. Row 0 is the top of the texture.
public RemoveRow ( int rowToRemove ) : void
rowToRemove int The index of the row to remove. Index 0 is the top row.
Résultat void

RemoveRows() public méthode

public RemoveRows ( IList rowsToRemove ) : void
rowsToRemove IList
Résultat void

Replace() public méthode

public Replace ( System.Drawing.Color oldColor, System.Drawing.Color newColor ) : void
oldColor System.Drawing.Color
newColor System.Drawing.Color
Résultat void

RotateClockwise90() public méthode

public RotateClockwise90 ( ) : void
Résultat void

SetDataDimensions() public méthode

public SetDataDimensions ( int desiredWidth, int desiredHeight ) : void
desiredWidth int
desiredHeight int
Résultat void

SetPixel() public méthode

public SetPixel ( int x, int y, System.Drawing.Color color ) : void
x int
y int
color System.Drawing.Color
Résultat void

ToTexture2D() public méthode

public ToTexture2D ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

ToTexture2D() public méthode

public ToTexture2D ( bool generateMipmaps ) : Microsoft.Xna.Framework.Graphics.Texture2D
generateMipmaps bool
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

ToTexture2D() public méthode

public ToTexture2D ( bool generateMipmaps, Microsoft.DirectX.Direct3D.Device graphicsDevice ) : Microsoft.Xna.Framework.Graphics.Texture2D
generateMipmaps bool
graphicsDevice Microsoft.DirectX.Direct3D.Device
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

ToTexture2D() public méthode

public ToTexture2D ( Microsoft.Xna.Framework.Graphics.Texture2D textureToFill ) : void
textureToFill Microsoft.Xna.Framework.Graphics.Texture2D
Résultat void