KineticJS icon indicating copy to clipboard operation
KineticJS copied to clipboard

Problem with image.cache(). when scale is set

Open bordeux opened this issue 11 years ago • 4 comments

Here is my problem: http://jsfiddle.net/bordeux/54TRx/

How can i fix it? I need image.cache(), becase without it, i cant use filters.

bordeux avatar Jun 23 '14 11:06 bordeux

any ideas?

bordeux avatar Jun 25 '14 07:06 bordeux

Set scale after cache. Or pass width and height params to cache function ( height = imageHeight * scaleX, same for width)

lavrton avatar Jun 25 '14 07:06 lavrton

is't this bug? I fixed it in _cache function: https://gist.github.com/bordeux/d72f8d41996129780762

bordeux avatar Jun 25 '14 07:06 bordeux

It is a bug. Can we apply scale the way translate is applied on cached canvas?

pronebird avatar Oct 21 '14 12:10 pronebird