Comments (3)
try drawing on the half pixel, as i believe we are drawing on the grid between pixels on on the pixel itself i.e try using new Rectangle(0.5, 0.5, 10, 10)
instead.
I reserve to right to be completely wrong on this it was a while ago I wrote the rasterizing code.
from shapes.
Thank you very much for your reply.
Try to follow its recommendations but the Rectangle does not support float.
public Rectangle(Point point, Size size);
public Rectangle(int x, int y, int width, int height);
from shapes.
After trying different examples , I was find a solution. 😄
using (var image = new Image<Rgba32>(128, 32))
{
image.Mutate(x => x
.BackgroundColor(Rgba32.Black)
.Draw(
new GraphicsOptions(false),
Rgba32.White,
1,
new Rectangle(0, 1, 10, 10)
));
image.Save(name + ".bmp");
}
from shapes.
Related Issues (20)
- improve ellipse so that its rounder
- missed edges for a set of shapes
- Incorrect intersection count when passing through a co-linear segment
- Path outlining (with pattern support)
- Single point simplified path throws index out of range exception. HOT 1
- Return location and angle of point along a path
- Migrate public API to use Span<T>/ReadOnlySpan<T> thu-out HOT 4
- GenerateOutline as used in ImageSharp produces wrong results with self-intersecting lines HOT 2
- System.MissingMethodException HOT 6
- Q: Use case of library HOT 4
- Incorrect Usage of RectangularPolygon(TopLeft, BottomRight) constructor in overload HOT 2
- Provide options to outline for specifying the joint types HOT 2
- we drop some intersections in large complex composite shapes (text) HOT 1
- Missing clipped corner from FindIntersections(...)
- No Rounded Corners - No Sharp Corners - Only a in between? HOT 2
- TextBuilder does not exist in SixLabors.Shapes HOT 1
- RegularPolygon tessellation is incorrect when angle != 0 HOT 1
- 3 pointed start returns wrong number of intersections.
- merge the IPath and IShape interfaces into a single structure
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shapes.