Changeset 30547 in osm for applications


Ignore:
Timestamp:
2014-08-01T10:51:20+02:00 (10 years ago)
Author:
larry0ua
Message:

[josm/PicLayer] - #10335 add interpolation hints for the image drawing

Location:
applications/editors/josm/plugins/piclayer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/piclayer/build.xml

    r30416 r30547  
    11<?xml version="1.0" encoding="utf-8"?>
    22<project name="PicLayer" default="dist" basedir=".">
    3     <property name="commit.message" value="[josm/PicLayer] - disable menu items by default"/>
     3    <property name="commit.message" value="[josm/PicLayer] - #10335 add interpolation hints for the image drawing"/>
    44    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    55    <property name="plugin.main.version" value="7001"/>
  • applications/editors/josm/plugins/piclayer/src/org/openstreetmap/josm/plugins/piclayer/layer/PicLayerAbstract.java

    r30436 r30547  
    2828import java.awt.Point;
    2929import java.awt.Toolkit;
     30import java.awt.RenderingHints;
    3031import java.awt.geom.AffineTransform;
    3132import java.awt.geom.NoninvertibleTransformException;
     
    252253
    253254            g.transform(transformer.getTransform());
     255
     256            g.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BICUBIC);
    254257
    255258            // Draw picture
Note: See TracChangeset for help on using the changeset viewer.