简体   繁体   English

如何在C#中绘制半个像素?

[英]How to draw half a pixel in C#?

I work with bitmap images in pictureBoxes, and color some pixels. 我在pictureBoxes中处理位图图像,并为一些像素着色。 I wonder if it is possible to fill just half of pixel? 我想知道是否可以仅填充一半像素? If yes, how to perform it in C# ? 如果是,如何在C#中执行它?

You can't set color of just half of a pixel in bitmap. 您不能在位图中仅将像素的颜色设置为一半。

You may be looking for sub-pixel rendering where RGB colors of individual pixels on a LCD screen are adjusted separately or anti-aliasing where the color of pixels of single object essentially bleeds to nearby pixels to provide smoother edges. 您可能正在寻找要分别调整LCD屏幕上单个像素的RGB颜色的子像素渲染 ,或正在寻找单个对象的像素颜色实质上渗入附近像素以提供更平滑边缘的抗锯齿功能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM