Codota Logo
ImageUtils.prepareImage
Code IndexAdd Codota to your IDE (free)

How to use
prepareImage
method
in
org.deegree.style.utils.ImageUtils

Best Java code snippets using org.deegree.style.utils.ImageUtils.prepareImage (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: deegree/deegree3

@Override
public void serializeException( HttpResponseBuffer response, OWSException ex,
                XMLExceptionSerializer exceptionSerializer, Map<String, String> map )
            throws SerializingException {
  int width = Integer.parseInt( map.get( "WIDTH" ) );
  int height = Integer.parseInt( map.get( "HEIGHT" ) );
  boolean transparent = map.get( "TRANSPARENT" ) != null && map.get( "TRANSPARENT" ).equalsIgnoreCase( "true" );
  String format = map.get( "FORMAT" );
  Color color = map.get( "BGCOLOR" ) == null ? white : decode( map.get( "BGCOLOR" ) );
  BufferedImage img = prepareImage( format, width, height, transparent, color );
  try {
    controller.sendImage( img, response, format );
  } catch ( OWSException e ) {
    throw new SerializingException( e );
  } catch ( IOException e ) {
    throw new SerializingException( e );
  }
}
origin: deegree/deegree3

Color color = map.get( "BGCOLOR" ) == null ? white : decode( map.get( "BGCOLOR" ) );
BufferedImage img = prepareImage( format, width, height, transparent, color );
Graphics2D g = img.createGraphics();
g.setColor( black );
origin: deegree/deegree3

/**
 * @param req
 *            should be a GetMap or GetLegendGraphic
 * @return an empty image conforming to the request parameters
 */
public static BufferedImage prepareImage( Object req ) {
  String format = null;
  int width = 0, height = 0;
  Color bgcolor = null;
  boolean transparent = false;
  if ( req instanceof GetLegendGraphic ) {
    GetLegendGraphic glg = (GetLegendGraphic) req;
    format = glg.getFormat();
    width = glg.getWidth();
    height = glg.getHeight();
    transparent = true;
  } else {
    return null;
  }
  return ImageUtils.prepareImage( format, width, height, transparent, bgcolor );
}
origin: deegree/deegree3

public static RenderContext createInstance( RenderingInfo info, OutputStream outputStream ) {
  BufferedImage image = ImageUtils.prepareImage( info.getFormat(), info.getWidth(), info.getHeight(), info.getTransparent(),
                              info.getBgColor() );
  
  return createInstance( info, image, outputStream);
}

org.deegree.style.utilsImageUtilsprepareImage

Popular methods of ImageUtils

  • getType
  • isTransparentAndTransparencySupported
  • postprocessPng8bit

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • findViewById (Activity)
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now