C# Class FlatRedBall.Graphics.Texture.ImageData

Mostrar archivo Open project: vchelaru/FlatRedBall Class Usage Examples

Public Methods

Method 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

Method 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 method

public ApplyColorOperation ( ColorOperation colorOperation, System.Drawing.Color appliedColor ) : void
colorOperation ColorOperation
appliedColor System.Drawing.Color
return void

ApplyColorOperation() public method

public ApplyColorOperation ( ColorOperation colorOperation, float red, float green, float blue, float alpha ) : void
colorOperation ColorOperation
red float
green float
blue float
alpha float
return void

Blit() public method

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

Blit() public method

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
return void

CopyFrom() public method

public CopyFrom ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D ) : void
texture2D Microsoft.Xna.Framework.Graphics.Texture2D
return void

CopyTo() public method

public CopyTo ( ImageData destination, int xOffset, int yOffset ) : void
destination ImageData
xOffset int
yOffset int
return void

ExpandIfNecessary() public method

public ExpandIfNecessary ( int desiredWidth, int desiredHeight ) : void
desiredWidth int
desiredHeight int
return void

Fill() public method

public Fill ( System.Drawing.Color fillColor ) : void
fillColor System.Drawing.Color
return void

Fill() public method

public Fill ( System.Drawing.Color fillColor, System.Drawing.Rectangle rectangle ) : void
fillColor System.Drawing.Color
rectangle System.Drawing.Rectangle
return void

FlipHorizontal() public method

public FlipHorizontal ( ) : void
return void

FlipVertical() public method

public FlipVertical ( ) : void
return void

FromTexture2D() public static method

public static FromTexture2D ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D ) : ImageData
texture2D Microsoft.Xna.Framework.Graphics.Texture2D
return ImageData

GetPixelColor() public method

public GetPixelColor ( int x, int y ) : System.Drawing.Color
x int
y int
return System.Drawing.Color

GetXAndY() public method

public GetXAndY ( int absoluteIndex, int &x, int &y ) : void
absoluteIndex int
x int
y int
return void

ImageData() public method

public ImageData ( int width, int height ) : System
width int
height int
return System

ImageData() public method

public ImageData ( int width, int height, System.Drawing.Color data ) : System
width int
height int
data System.Drawing.Color
return System

ImageData() public method

public ImageData ( int width, int height, byte data ) : System
width int
height int
data byte
return System

RemoveColumn() public method

public RemoveColumn ( int columnToRemove ) : void
columnToRemove int
return void

RemoveColumns() public method

public RemoveColumns ( IList columnsToRemove ) : void
columnsToRemove IList
return void

RemoveRow() public method

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.
return void

RemoveRows() public method

public RemoveRows ( IList rowsToRemove ) : void
rowsToRemove IList
return void

Replace() public method

public Replace ( System.Drawing.Color oldColor, System.Drawing.Color newColor ) : void
oldColor System.Drawing.Color
newColor System.Drawing.Color
return void

RotateClockwise90() public method

public RotateClockwise90 ( ) : void
return void

SetDataDimensions() public method

public SetDataDimensions ( int desiredWidth, int desiredHeight ) : void
desiredWidth int
desiredHeight int
return void

SetPixel() public method

public SetPixel ( int x, int y, System.Drawing.Color color ) : void
x int
y int
color System.Drawing.Color
return void

ToTexture2D() public method

public ToTexture2D ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
return Microsoft.Xna.Framework.Graphics.Texture2D

ToTexture2D() public method

public ToTexture2D ( bool generateMipmaps ) : Microsoft.Xna.Framework.Graphics.Texture2D
generateMipmaps bool
return Microsoft.Xna.Framework.Graphics.Texture2D

ToTexture2D() public method

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

ToTexture2D() public method

public ToTexture2D ( Microsoft.Xna.Framework.Graphics.Texture2D textureToFill ) : void
textureToFill Microsoft.Xna.Framework.Graphics.Texture2D
return void