protected void scaleTo(Projection thisProj){
  if (DEBUG) {
    logger.fine("OMScalingRaster: scaleTo()");
  }
  if (bitmap == null) {
    if (DEBUG) {
      logger.fine("scaleTo() source image is null");
    }
    return;
  }
  if (noScalingRequired) {
    return;
  }
  Rectangle projRect=new Rectangle();
  projRect.setLocation(point1);
  projRect.setSize(point2.x - point1.x,point2.y - point1.y);
  Rectangle sourceRect=new Rectangle();
  sourceRect.width=width;
  sourceRect.height=height;
  clipRect=null;
  if (!projRect.isEmpty()) {
    if ((projRect.width >= 1) && (projRect.height >= 1)) {
      if (sourceRect.width <= 0) {
        sourceRect.width=1;
      }
      if (sourceRect.height <= 0) {
        sourceRect.height=1;
      }
      double widthAdj=(double)projRect.width / (double)sourceRect.width;
      double heightAdj=(double)projRect.height / (double)sourceRect.height;
      AffineTransform xform=new AffineTransform();
      xform.setToScale(widthAdj,heightAdj);
      this.scalingXFormOp=new AffineTransformOp(xform,getScaleTransformType());
    }
  }
}

protected void scaleTo ( Projection thisProj ) { if ( DEBUG ) { logger . fine ( "OMScalingRaster: scaleTo()" ) ; } if ( bitmap == null ) { if ( DEBUG ) { logger . fine ( "scaleTo() source image is null" ) ; } return ; } if ( noScalingRequired ) { return ; } Rectangle projRect = new Rectangle ( ) ; projRect . setLocation ( point1 ) ; projRect . setSize ( point2 . x - point1 . x , point2 . y - point1 . y ) ; Rectangle sourceRect = new Rectangle ( ) ; sourceRect . width = width ; sourceRect . height = height ; clipRect = null ; if ( ! projRect . isEmpty ( ) ) { if ( ( projRect . width >= 1 ) && ( projRect . height >= 1 ) ) { if ( sourceRect . width <= 0 ) { sourceRect . width = 1 ; } if ( sourceRect . height <= 0 ) { sourceRect . height = 1 ; } double widthAdj = ( double ) projRect . width / ( double ) sourceRect . width ; double heightAdj = ( double ) projRect . height / ( double ) sourceRect . height ; AffineTransform xform = new AffineTransform ( ) ; xform . setToScale ( widthAdj , heightAdj ) ; this . scalingXFormOp = new AffineTransformOp ( xform , getScaleTransformType ( ) ) ; } } }
over - riding this so we don ' t clip rotated icons near the edge of the map . just display icons as whole .
