C# Класс FlatRedBall.Graphics.Texture.ImageData

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ApplyColorOperation() публичный метод

public ApplyColorOperation ( ColorOperation colorOperation, System.Drawing.Color appliedColor ) : void
colorOperation ColorOperation
appliedColor System.Drawing.Color
Результат void

ApplyColorOperation() публичный метод

public ApplyColorOperation ( ColorOperation colorOperation, float red, float green, float blue, float alpha ) : void
colorOperation ColorOperation
red float
green float
blue float
alpha float
Результат void

Blit() публичный метод

public Blit ( ImageData source, System.Drawing.Rectangle sourceRectangle, System.Drawing.Point destination ) : void
source ImageData
sourceRectangle System.Drawing.Rectangle
destination System.Drawing.Point
Результат void

Blit() публичный метод

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
Результат void

CopyFrom() публичный метод

public CopyFrom ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D ) : void
texture2D Microsoft.Xna.Framework.Graphics.Texture2D
Результат void

CopyTo() публичный метод

public CopyTo ( ImageData destination, int xOffset, int yOffset ) : void
destination ImageData
xOffset int
yOffset int
Результат void

ExpandIfNecessary() публичный метод

public ExpandIfNecessary ( int desiredWidth, int desiredHeight ) : void
desiredWidth int
desiredHeight int
Результат void

Fill() публичный метод

public Fill ( System.Drawing.Color fillColor ) : void
fillColor System.Drawing.Color
Результат void

Fill() публичный метод

public Fill ( System.Drawing.Color fillColor, System.Drawing.Rectangle rectangle ) : void
fillColor System.Drawing.Color
rectangle System.Drawing.Rectangle
Результат void

FlipHorizontal() публичный метод

public FlipHorizontal ( ) : void
Результат void

FlipVertical() публичный метод

public FlipVertical ( ) : void
Результат void

FromTexture2D() публичный статический метод

public static FromTexture2D ( Microsoft.Xna.Framework.Graphics.Texture2D texture2D ) : ImageData
texture2D Microsoft.Xna.Framework.Graphics.Texture2D
Результат ImageData

GetPixelColor() публичный метод

public GetPixelColor ( int x, int y ) : System.Drawing.Color
x int
y int
Результат System.Drawing.Color

GetXAndY() публичный метод

public GetXAndY ( int absoluteIndex, int &x, int &y ) : void
absoluteIndex int
x int
y int
Результат void

ImageData() публичный метод

public ImageData ( int width, int height ) : System
width int
height int
Результат System

ImageData() публичный метод

public ImageData ( int width, int height, System.Drawing.Color data ) : System
width int
height int
data System.Drawing.Color
Результат System

ImageData() публичный метод

public ImageData ( int width, int height, byte data ) : System
width int
height int
data byte
Результат System

RemoveColumn() публичный метод

public RemoveColumn ( int columnToRemove ) : void
columnToRemove int
Результат void

RemoveColumns() публичный метод

public RemoveColumns ( IList columnsToRemove ) : void
columnsToRemove IList
Результат void

RemoveRow() публичный метод

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.
Результат void

RemoveRows() публичный метод

public RemoveRows ( IList rowsToRemove ) : void
rowsToRemove IList
Результат void

Replace() публичный метод

public Replace ( System.Drawing.Color oldColor, System.Drawing.Color newColor ) : void
oldColor System.Drawing.Color
newColor System.Drawing.Color
Результат void

RotateClockwise90() публичный метод

public RotateClockwise90 ( ) : void
Результат void

SetDataDimensions() публичный метод

public SetDataDimensions ( int desiredWidth, int desiredHeight ) : void
desiredWidth int
desiredHeight int
Результат void

SetPixel() публичный метод

public SetPixel ( int x, int y, System.Drawing.Color color ) : void
x int
y int
color System.Drawing.Color
Результат void

ToTexture2D() публичный метод

public ToTexture2D ( ) : Microsoft.Xna.Framework.Graphics.Texture2D
Результат Microsoft.Xna.Framework.Graphics.Texture2D

ToTexture2D() публичный метод

public ToTexture2D ( bool generateMipmaps ) : Microsoft.Xna.Framework.Graphics.Texture2D
generateMipmaps bool
Результат Microsoft.Xna.Framework.Graphics.Texture2D

ToTexture2D() публичный метод

public ToTexture2D ( bool generateMipmaps, Microsoft.DirectX.Direct3D.Device graphicsDevice ) : Microsoft.Xna.Framework.Graphics.Texture2D
generateMipmaps bool
graphicsDevice Microsoft.DirectX.Direct3D.Device
Результат Microsoft.Xna.Framework.Graphics.Texture2D

ToTexture2D() публичный метод

public ToTexture2D ( Microsoft.Xna.Framework.Graphics.Texture2D textureToFill ) : void
textureToFill Microsoft.Xna.Framework.Graphics.Texture2D
Результат void