You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by "Oliver Heuschele (JIRA)" <ji...@apache.org> on 2017/05/29 10:06:04 UTC

[jira] [Commented] (BATIK-1190) Prevent pixelated image textures

    [ https://issues.apache.org/jira/browse/BATIK-1190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16028193#comment-16028193 ] 

Oliver Heuschele commented on BATIK-1190:
-----------------------------------------

Is it possible to get the current scale of the target element at this point? To manipulate the image with the right scale, would be a much better solution.

> Prevent pixelated image textures
> --------------------------------
>
>                 Key: BATIK-1190
>                 URL: https://issues.apache.org/jira/browse/BATIK-1190
>             Project: Batik
>          Issue Type: Improvement
>          Components: SVGGraphics2D
>    Affects Versions: 1.9
>            Reporter: Oliver Heuschele
>         Attachments: after_patch.png, bevor_patch.png, use_full_texture.patch
>
>
> I run into a problem with image textures by using the SVGGraphics2d implementation. In my scenario i paint the SVG relatively small, because the data source provides size informations in centimeters. The scale is defined at the beginning of the painting process and is set in the SVGGrahics2d object. The problem is that the SVGTexturePaint scales down the textures with the unscaled size informations of the target box, so image data get lost. The upscaling of the SVG results in pixelated textures.
> My proposal is to introduce a rendering hint, which adds only a scale tag to the texture image and keep the hole image data. So a later scaling will not destroy the textures.
> A patch file is added, the 'rescaleTexture' switch should be set with a hint.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org