메소드 | 설명 | |
---|---|---|
BeginRender ( ) : void |
Begins the drawing process.
|
|
BeginRenderNonPremultiplied ( ) : void |
Begins the drawing process - using NonPremultiplied as the color merging option
|
|
BeginRenderOpaque ( ) : void |
Begins the drawing process - using opaque as the color merging option
|
|
DrawGraphic ( ImageType imageType, |
Renders a specific image
|
|
EndRender ( ) : void |
End the current rendering process
|
|
GraphicsDisplay ( Microsoft.Xna.Framework.Graphics.Texture2D graphicsTexture, |
Initializes a new instance of the Paint.GraphicsDisplay class.
|
|
SourceRectangleFromImageType ( ImageType imageType ) : |
Calculates the area of the texturemap that we need to use for rendering a specific image
|
public DrawGraphic ( ImageType imageType, |
||
imageType | ImageType | Type of image we want to render |
paintRegion | destination rectangle to render the graphic | |
color | Color | Colour to use for rendering the image |
리턴 | void |
public GraphicsDisplay ( Microsoft.Xna.Framework.Graphics.Texture2D graphicsTexture, |
||
graphicsTexture | Microsoft.Xna.Framework.Graphics.Texture2D | The sprite map - all images we need to render |
spriteBatch | Low level rendering class | |
highResolution | bool | Is the iPad running in High resolution. |
리턴 | System |
public SourceRectangleFromImageType ( ImageType imageType ) : |
||
imageType | ImageType | Type of image we want to render |
리턴 |