Codota Logo
PNGEncodeParam$RGB
Code IndexAdd Codota to your IDE (free)

How to use
PNGEncodeParam$RGB
in
org.apache.batik.ext.awt.image.codec.png

Best Java code snippets using org.apache.batik.ext.awt.image.codec.png.PNGEncodeParam$RGB (Showing top 20 results out of 315)

  • Common ways to obtain PNGEncodeParam$RGB
private void myMethod () {
PNGEncodeParam$RGB p =
  • Codota Iconnew PNGEncodeParam.RGB()
  • Smart code suggestions by Codota
}
origin: apache/batik

  encodeParam = new PNGEncodeParam.Gray();
} else {
  encodeParam = new PNGEncodeParam.RGB();
origin: liuyueyi/quick-media

if (encodeParam != null) {
  ((PNGEncodeParam.RGB)encodeParam).
    setBackgroundRGB(bkgdRGB);
origin: liuyueyi/quick-media

rgbTrans[2] = blueTransparentAlpha;
((PNGEncodeParam.RGB)encodeParam).
  setTransparentRGB(rgbTrans);
origin: org.apache.xmlgraphics/batik-codec

private void writeBKGD() throws IOException {
  if (param.isBackgroundSet()) {
    ChunkStream cs = new ChunkStream("bKGD");
    switch (colorType) {
    case PNG_COLOR_GRAY:
    case PNG_COLOR_GRAY_ALPHA:
      int gray = ((PNGEncodeParam.Gray)param).getBackgroundGray();
      cs.writeShort(gray);
      break;
    case PNG_COLOR_PALETTE:
      int index =
        ((PNGEncodeParam.Palette)param).getBackgroundPaletteIndex();
      cs.writeByte(index);
      break;
    case PNG_COLOR_RGB:
    case PNG_COLOR_RGB_ALPHA:
      int[] rgb = ((PNGEncodeParam.RGB)param).getBackgroundRGB();
      cs.writeShort(rgb[0]);
      cs.writeShort(rgb[1]);
      cs.writeShort(rgb[2]);
      break;
    }
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

((PNGEncodeParam.RGB)params).setBackgroundRGB
  (new int [] { 255, 255, 255 });
origin: org.apache.xmlgraphics/batik-codec

((PNGEncodeParam.RGB)params).setBackgroundRGB
  (new int [] { 255, 255, 255 });
origin: org.apache.xmlgraphics/batik-codec

rgbTrans[2] = blueTransparentAlpha;
((PNGEncodeParam.RGB)encodeParam).
  setTransparentRGB(rgbTrans);
origin: org.apache.xmlgraphics/batik-codec

if (encodeParam != null) {
  ((PNGEncodeParam.RGB)encodeParam).
    setBackgroundRGB(bkgdRGB);
origin: fr.avianey.apache-xmlgraphics/batik

if (encodeParam != null) {
  ((PNGEncodeParam.RGB)encodeParam).
    setBackgroundRGB(bkgdRGB);
origin: liuyueyi/quick-media

rgbTrans[2] = blueTransparentAlpha;
((PNGEncodeParam.RGB)encodeParam).
  setTransparentRGB(rgbTrans);
origin: apache/batik

rgbTrans[2] = blueTransparentAlpha;
((PNGEncodeParam.RGB)encodeParam).
  setTransparentRGB(rgbTrans);
origin: apache/batik

if (encodeParam != null) {
  ((PNGEncodeParam.RGB)encodeParam).
    setBackgroundRGB(bkgdRGB);
origin: liuyueyi/quick-media

((PNGEncodeParam.RGB)params).setBackgroundRGB
  (new int [] { 255, 255, 255 });
origin: org.apache.xmlgraphics/batik-codec

rgbTrans[2] = blueTransparentAlpha;
((PNGEncodeParam.RGB)encodeParam).
  setTransparentRGB(rgbTrans);
origin: fr.avianey.apache-xmlgraphics/batik

if (encodeParam != null) {
  ((PNGEncodeParam.RGB)encodeParam).
    setBackgroundRGB(bkgdRGB);
origin: fr.avianey.apache-xmlgraphics/batik

rgbTrans[2] = blueTransparentAlpha;
((PNGEncodeParam.RGB)encodeParam).
  setTransparentRGB(rgbTrans);
origin: apache/batik

((PNGEncodeParam.RGB)params).setBackgroundRGB
  (new int [] { 255, 255, 255 });
origin: fr.avianey.apache-xmlgraphics/batik

rgbTrans[2] = blueTransparentAlpha;
((PNGEncodeParam.RGB)encodeParam).
  setTransparentRGB(rgbTrans);
origin: apache/batik

  cs.writeShort(t);
} else if (param instanceof PNGEncodeParam.RGB) {
  int[] t = ((PNGEncodeParam.RGB)param).getTransparentRGB();
  cs.writeShort(t[0]);
  cs.writeShort(t[1]);
origin: apache/batik

rgbTrans[2] = blueTransparentAlpha;
((PNGEncodeParam.RGB)encodeParam).
  setTransparentRGB(rgbTrans);
org.apache.batik.ext.awt.image.codec.pngPNGEncodeParam$RGB

Most used methods

  • <init>
    Constructs an instance of PNGEncodeParam.RGB.
  • getBackgroundRGB
    Returns the RGB value of the suggested background color. If the background color has not previously
  • getTransparentRGB
    Returns the RGB value to be used to denote transparency. If the transparent color has not previously
  • setBackgroundRGB
    Sets the RGB value of the suggested background color. The rgb parameter should have 3 entries. The '
  • setTransparentRGB
    Sets the RGB value to be used to denote transparency. Setting this attribute will cause the alpha ch

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getContentResolver (Context)
  • orElseThrow (Optional)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
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