public UICursor ( |
||
focalPoint | in percentage(0.00 ~ 1.00). |
|
size | ||
cursorBitmap | string | |
Результат | System |
public UICursor(PointF focalPoint,
Size size, string cursorBitmap = "")
: base(AnchorStyles.Left | AnchorStyles.Top,
new Padding(0, 0, 0, 0), size, -Math.Max(size.Width, size.Height), Math.Max(size.Width, size.Height))
{
this.FocalPoint = focalPoint;
TextureRenderer renderer = TextureRenderer.Create(cursorBitmap);
renderer.StateList.Add(new BlendState(BlendingSourceFactor.SourceAlpha, BlendingDestinationFactor.OneMinusSourceAlpha));
this.Renderer = renderer;
}