SinglePixelTexture
Introduction
Assigning SinglePixelTexture
// assuming MainTexture is a texture that contains
// the single pixel
var renderer = SystemManagers.Default.Renderer;
renderer.SinglePixelTexture = MainTexture;
// The MainTexture should contain more than just the single pixel, so
// you probably need to assign the rectangle. This is in pixel coordiantes
// This assumes that x and y are valid x and y coordinates on your texture
renderer.SinglePixelSourceRectangle = new System.Drawing.Rectangle(
x,
y,
1,
1
);Last updated
Was this helpful?

