Comments (7)
25
causes a slightly different issue: http://oi62.tinypic.com/wb82fs.jpg
dest := image.NewRGBA(image.Rect(0, 25, 297, 210.0))
It appears that dest.Bounds().Min.Y
is being subtracted from the bottom of the image.
from draw2d.
fmt.Println(dest.Pix[(dest.Bounds().Max.Y-dest.Bounds().Min.Y)*dest.Stride:])
returns all 0
s, so the bottom pixels are definitely being clipped.
from draw2d.
What is the expected behavior here?
I assumed drawing using a GraphicContext
would be like writing to a draw.Image
, so this may not be an issue at all.
from draw2d.
I think the expected behavior is to have an image clipped. The GC coordinate do not change even if the image in parameter is a clipped image.
from draw2d.
Thanks, Laurent.
Is draw2d
(or draw2dimg
) supposed to behave like HTML5's canvas?
from draw2d.
it's inspired by it and postscript
-- Laurent.
On 19 August 2015 at 11:30, Steven Edwards [email protected] wrote:
Thanks, Laurent.
Is draw2d (or draw2d supposed to behave like HTML5's canvas?
—
Reply to this email directly or view it on GitHub
#76 (comment).
from draw2d.
I'll go ahead and close this, then. I can replicate the functionality I'm looking for another way. :)
from draw2d.
Related Issues (20)
- SetLineCap does not work
- Is that possible for cutting a rectangle pic as rounded ? HOT 1
- How can I draw a shape with an inner hole ? HOT 4
- GraphicContext within GraphicContext HOT 1
- support reading of svg format HOT 2
- always get empty png HOT 3
- Draw line using a gradient color HOT 2
- Does it support different blend for image? HOT 1
- Scale/Rotate transformations with graphics context for pdf files HOT 1
- Is it possible to fill path with transparent color on a non-transparent background? HOT 2
- GetStringBounds Wrapping Support HOT 2
- Text Stroke LineCap and LineJoin HOT 6
- how to use your own font / custom font? HOT 1
- i know how to scale image but how do i resize canvas? HOT 1
- nice work, how do i get the color code of a particular pixel? HOT 1
- how to save as []byte so to get md5 hash value without saving to disk first? HOT 1
- i know how to draw a line. but how do you draw a pixel? just 1 pixel. HOT 1
- SVG file is enormous HOT 8
- Support EPS (encapsulated postscript) output HOT 4
- Wrong Filling
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 draw2d.