C# Class Rabotora.Runtime.BitmapDrawCmd

Inheritance: RabotoraD2DCmd
Mostra file Open project: Misaka12456/Rabotora

Public Methods

Method Description
BitmapDrawCmd ( Array bitmapData, RawRectangleF targetRect, Size2F targetWindowSize, float opacity = 1.0f, bool flushInstantly = false ) : SharpDX

Instantiate a new BitmapDrawCmd instance.

BitmapDrawCmd ( Array bitmapData, RawRectangleF targetRect, float scaleMultiple = 1.0f, float opacity = 1.0f, bool flushInstantly = false ) : SharpDX

Instantiate a new BitmapDrawCmd instance.

DoCommand ( RenderTarget renderTarget ) : void

Method Details

BitmapDrawCmd() public method

Instantiate a new BitmapDrawCmd instance.
public BitmapDrawCmd ( Array bitmapData, RawRectangleF targetRect, Size2F targetWindowSize, float opacity = 1.0f, bool flushInstantly = false ) : SharpDX
bitmapData Array Bitmap data.
targetRect RawRectangleF Which rectangle range on the render target(window) should be drawn by the bitmap?
targetWindowSize Size2F Destination window size.
opacity float What opacity we should use to draw the bitmap? (Range: [0,1])
flushInstantly bool Should we flush render target instantly after drawing the bitmap?
return SharpDX

BitmapDrawCmd() public method

Instantiate a new BitmapDrawCmd instance.
public BitmapDrawCmd ( Array bitmapData, RawRectangleF targetRect, float scaleMultiple = 1.0f, float opacity = 1.0f, bool flushInstantly = false ) : SharpDX
bitmapData Array Bitmap data.
targetRect RawRectangleF Which rectangle range on the render target(window) should be drawn by the bitmap?
scaleMultiple float Which multiple should be used to scale the bitmap?
opacity float What opacity we should use to draw the bitmap? (Range: [0,1])
flushInstantly bool Should we flush render target instantly after drawing the bitmap?
return SharpDX

DoCommand() public method

public DoCommand ( RenderTarget renderTarget ) : void
renderTarget RenderTarget
return void