antialiasing

Is there an antialiasing method for Python PIL?

不想你离开。 提交于 2019-12-17 19:14:09
问题 For lines and ellipses in PIL, the images are rough. I found antialiasing only in resize and thumbnail. Is there any way to do antialiasing when drawing a line or ellipse? 回答1: The only way to do it natively is with supersampling. Render your image at a multiple of the size you require, then resize it with filter=Image.ANTIALIAS . 回答2: aggdraw (http://effbot.org/zone/aggdraw-index.htm) may be something you're interested in. The aggdraw module implements the basic WCK 2D Drawing Interface on

Anti-aliasing in R graphics under Windows (as per Mac)

人走茶凉 提交于 2019-12-17 17:37:19
问题 is there a way to plot anti-aliased graphics from the Windows version of R? As you can see from the two versions below the Mac version of R prints graphics anti aliased.... ....whereas while the Windows version anti-aliases text, it does not anti-alias the actual graphic, as can be seen from the riser points, and the grid: Here is the code by the way: library(scatterplot3d) attach(mtcars) s3d <-scatterplot3d(wt,disp,mpg, pch=16, highlight.3d=TRUE, type="h", main="3D Scatterplot") fit <- lm

Antialiasing not working in Three.js

╄→гoц情女王★ 提交于 2019-12-17 09:51:21
问题 I am new to three.js and have starting working with it a lot recently. I really enjoy it and I have created some incredible things. However, I'm unsure why but when setting antialiasing to true I see no difference. renderer = new THREE.WebGLRenderer({ antialiasing: true }); I have searched for possible solutions, yet I can't seem to find or understand why this doesn't work. Is there something I am missing or need to in order to get antialiasing to work? EDIT: Links that helped me fix this

Java Applet: no antialiased font in browser (but in AppletViewer)

空扰寡人 提交于 2019-12-14 03:42:51
问题 In the AppletViewer, my Applet looks like this: In the browser, my Applet looks like this: As you can see, the font is not antialiased. Also the background color is different. And all the text is cutted on the right side. What could that be? You can also try it yourself here. From here I tried to use this code: System.setProperty("awt.useSystemAAFontSettings","on"); System.setProperty("swing.aatext", "true"); But that results only in this exception: java.security.AccessControlException:

SVG icon pixel-alignment?

那年仲夏 提交于 2019-12-14 02:11:32
问题 In this image, the left (black) trash can is an icon-font. Its font-size is 16px which causes the icon to look crisp 100% of the time. The two blue trash cans are SVGs. They have exactly the same markup. One of them happened to be pixel-aligned, and the other one wasn't. How can I force my SVG icons to always be pixel-aligned so that they come out sharp, just like font-icons? Not that I think it's relevant to my question, but the icon in question is ionicon trash-a.svg. It was designed to

IsAntiAlias creates border around graph

泪湿孤枕 提交于 2019-12-13 15:43:21
问题 Here's screenshot of my form with a Zedgraph: It's how I want it: grey graph on a grey form; no graph or chart borders. The only problem is the aliasing. So I add this: zedGraphControl1.IsAntiAlias = true; but then I get this: How can I get rid of that partial border on the top and left of the graph that now appears? 回答1: zedgraphControl1.MasterPane.Border.IsVisible = false; Should fix it. 回答2: i dug around the zedgraph source; couldn't find any easy cause/fix. so, i just turned off

Two exactly same SVG paths not drawn exactly the same way

六眼飞鱼酱① 提交于 2019-12-13 15:06:28
问题 I'm drawing two exactly same paths on top of each other to an SVG canvas. The path behind can be seen even though the other path should hide it. Here's the SVG: <svg viewBox="0 0 100 100"> <!-- BLUE PATH --> <path id="blue" d="M 50,50 m 0,-48 a 48,48 0 1 1 0,96 a 48,48 0 1 1 0,-96" stroke="blue" stroke-width="4" fill-opacity="0" style="stroke-dasharray: 302px, 302px; stroke-dashoffset: 0px;"></path> <!-- YELLOW PATH --> <path id="yellow" d="M 50,50 m 0,-48 a 48,48 0 1 1 0,96 a 48,48 0 1 1 0,

CanvasRenderingContext2D.strokeRect still tries to antialias my values, instead of drawing one pixel

末鹿安然 提交于 2019-12-13 10:36:57
问题 I'm making a graph, mostly as an exercise. The graph tries to connect values by lines, but if a value cannot be connected, it just draws a pixel. In the following example, I made sure that minY , maxY and pixelX are all integer values. They actually come from Int32Array in my real code. // some min max range for this X pixel coordinate const minY = data[i].min; const maxY = data[i].max; // if there are multiple values on this X coordinate if (maxY - minY > 1) { ctx.beginPath(); ctx.moveTo

How to using anti-aliasing in wpf 3d

一个人想着一个人 提交于 2019-12-12 17:28:17
问题 guys! I want to implement this in wpf, here's the link: http://www.matthiasdittrich.com/ So I should put some 2d content in viewport3d. I used Viewport2DVisual3D as the container for 2d elements. But I encountered serious aliasing, I added the RenderOptions.EdgeMode="Aliased",but it does not work. Here's my xaml: <Viewport3D RenderOptions.EdgeMode="Aliased"> <Viewport3D.Camera> <PerspectiveCamera Position="0, -2, 6" LookDirection="0, 2, -6"/> </Viewport3D.Camera> <Viewport2DVisual3D

How to disable anti-aliasing in JavaFX fonts?

随声附和 提交于 2019-12-12 16:52:02
问题 Using JavaFX to render HTML content using a javafx.scene.web.WebView , the content is always drawn with text anti-aliasing on. Although this makes fonts look smoother, it often makes the printing of content to a monochrome/thermal style printer (receipt, shipping label) problematic. A nearest-neighbor scale would be much better. The awt and swing techniques ( -Dawt.useSystemAAFontSettings and -Dswing.aatext respectively) don't seem to help JavaFX. There's an option to switch from lcd anti