antialiasing

Turn off antialiasing for black and white bitmap Rendered from canvas

这一生的挚爱 提交于 2020-07-09 08:04:13
问题 I have a problem with WPF's anti aliasing of text. In my application the user designs text or image fields to be printed using a special printing device. I am using a canvas to host the fields, which are either textblocks or Images The problem is when i convert this canvas into a RenderTargetBitmap, then into a black and white FormatConvertedBitmap, the text and images end up extremely fuzzy looking. I have tried using "snaptodevicepixels = true" and "RenderOptions.EdgeMode" = Aliased on

Turn off antialiasing for black and white bitmap Rendered from canvas

 ̄綄美尐妖づ 提交于 2020-07-09 08:04:10
问题 I have a problem with WPF's anti aliasing of text. In my application the user designs text or image fields to be printed using a special printing device. I am using a canvas to host the fields, which are either textblocks or Images The problem is when i convert this canvas into a RenderTargetBitmap, then into a black and white FormatConvertedBitmap, the text and images end up extremely fuzzy looking. I have tried using "snaptodevicepixels = true" and "RenderOptions.EdgeMode" = Aliased on

Turn off antialiasing for black and white bitmap Rendered from canvas

无人久伴 提交于 2020-07-09 08:02:14
问题 I have a problem with WPF's anti aliasing of text. In my application the user designs text or image fields to be printed using a special printing device. I am using a canvas to host the fields, which are either textblocks or Images The problem is when i convert this canvas into a RenderTargetBitmap, then into a black and white FormatConvertedBitmap, the text and images end up extremely fuzzy looking. I have tried using "snaptodevicepixels = true" and "RenderOptions.EdgeMode" = Aliased on

Reverse (remove) anti-aliasing filter

China☆狼群 提交于 2020-07-05 03:44:43
问题 I have a set of anti-aliased greyscale PNG images. I need to know how to programatically revert the anti-aliasing effect and get sharp edges again. I'm using GDI+ but I am less interested in code. I need an algorithm, maybe a convolution filter, if such a matrix can be built. The greyscale images (should) contain only 6 colors (or different shades of grey). This is so that later on I can re-color them using a Color-Lookup filter. However, when the images where saved, Photoshop automatically

“Renders with edge antialiasing” causes delay in UIAlertView in iOS 7

有些话、适合烂在心里 提交于 2020-05-10 04:16:29
问题 Ever since iOS 7, I noticed my UIAlertViews show with a sort of drawing delay- what happens is the screen dims and the UIAlertView's text appears on the screen for just a split second before the actual frame of the alert view appears. I traced the problem to being due to the "Renders with edge antialiasing" flag set to YES in my application plist file. Turning this off solves the problem (but then I have ugly jaggies on any rotated views, which is what I was using that flag to solve in the

Why is there whitespace / “overlap” between rect elements where there shouldn't be?

风格不统一 提交于 2020-02-05 06:22:51
问题 I'm using d3.js to generate some rects which are directly above one another, in this fashion: var greenRed = d3.select(".green-red").append("svg") .attr("height", 120); greenRed.append("rect") .attr("fill", "green") .attr("x", 0) .attr("y", 0) .attr("height", 50) .attr("width", 300); greenRed.append("rect") .attr("fill", "red") .attr("x", 0) .attr("y", 50) .attr("height", 50) .attr("width", 300); I've noticed that depending on which colours are stacked on top of one another, there is either a

Anti-aliased JLabel

我怕爱的太早我们不能终老 提交于 2020-01-24 10:50:07
问题 I've attempted to create a custom anti-aliased JLabel , but my text remains rigid. Why doesn't this work? The answers to similar questions include more verbose solutions, but I want to know why this isn't working. Edit: Here's an SSCCE: import java.awt.Font; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; import javax.swing.JFrame; import javax.swing.JLabel; public class Tester { public static void main(String[] args) { SmoothLabel label = new SmoothLabel

Antialiased composition by coverage?

时间秒杀一切 提交于 2020-01-15 03:04:07
问题 Does anyone know of a graphics system which handles composition of multiple anti-aliased lines well? I'm showing a dependency diagram and have a bunch of curves emanating from a point. These are drawn anti-aliased in the usual way, of blending partially covered pixels. So if two lines would occupy the same half of a pixel, the antialiasing blends it to 75% filled rather than 50% filled. With enough lines drawn on top of each other, the pixel blend clamps and you end up with aliased lines. I

Antialiased composition by coverage?

时光总嘲笑我的痴心妄想 提交于 2020-01-15 03:03:00
问题 Does anyone know of a graphics system which handles composition of multiple anti-aliased lines well? I'm showing a dependency diagram and have a bunch of curves emanating from a point. These are drawn anti-aliased in the usual way, of blending partially covered pixels. So if two lines would occupy the same half of a pixel, the antialiasing blends it to 75% filled rather than 50% filled. With enough lines drawn on top of each other, the pixel blend clamps and you end up with aliased lines. I