Tabnine Logo
PNGEncodeParam.isSRGBIntentSet
Code IndexAdd Tabnine to your IDE (free)

How to use
isSRGBIntentSet
method
in
org.apache.batik.ext.awt.image.codec.png.PNGEncodeParam

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

origin: fr.avianey.apache-xmlgraphics/batik

private void writeCHRM() throws IOException {
  if (param.isChromaticitySet() || param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("cHRM");
    float[] chroma;
    if (!param.isSRGBIntentSet()) {
      chroma = param.getChromaticity();
    } else {
      chroma = srgbChroma; // SRGB chromaticities
    }
    for (int i = 0; i < 8; i++) {
      cs.writeInt((int)(chroma[i]*100000));
    }
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: liuyueyi/quick-media

private void writeCHRM() throws IOException {
  if (param.isChromaticitySet() || param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("cHRM");
    float[] chroma;
    if (!param.isSRGBIntentSet()) {
      chroma = param.getChromaticity();
    } else {
      chroma = srgbChroma; // SRGB chromaticities
    }
    for (int i = 0; i < 8; i++) {
      cs.writeInt((int)(chroma[i]*100000));
    }
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: apache/batik

private void writeCHRM() throws IOException {
  if (param.isChromaticitySet() || param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("cHRM");
    float[] chroma;
    if (!param.isSRGBIntentSet()) {
      chroma = param.getChromaticity();
    } else {
      chroma = srgbChroma; // SRGB chromaticities
    }
    for (int i = 0; i < 8; i++) {
      cs.writeInt((int)(chroma[i]*100000));
    }
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: apache/batik

private void writeGAMA() throws IOException {
  if (param.isGammaSet() || param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("gAMA");
    float gamma;
    if (!param.isSRGBIntentSet()) {
      gamma = param.getGamma();
    } else {
      gamma = 1.0F/2.2F; // SRGB gamma
    }
    // TD should include the .5 but causes regard to say
    // everything is different.
    cs.writeInt((int)(gamma*100000/*+0.5*/));
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: liuyueyi/quick-media

private void writeGAMA() throws IOException {
  if (param.isGammaSet() || param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("gAMA");
    float gamma;
    if (!param.isSRGBIntentSet()) {
      gamma = param.getGamma();
    } else {
      gamma = 1.0F/2.2F; // SRGB gamma
    }
    // TD should include the .5 but causes regard to say
    // everything is different.
    cs.writeInt((int)(gamma*100000/*+0.5*/));
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writeCHRM() throws IOException {
  if (param.isChromaticitySet() || param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("cHRM");
    float[] chroma;
    if (!param.isSRGBIntentSet()) {
      chroma = param.getChromaticity();
    } else {
      chroma = srgbChroma; // SRGB chromaticities
    }
    for (int i = 0; i < 8; i++) {
      cs.writeInt((int)(chroma[i]*100000));
    }
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writeGAMA() throws IOException {
  if (param.isGammaSet() || param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("gAMA");
    float gamma;
    if (!param.isSRGBIntentSet()) {
      gamma = param.getGamma();
    } else {
      gamma = 1.0F/2.2F; // SRGB gamma
    }
    // TD should include the .5 but causes regard to say
    // everything is different.
    cs.writeInt((int)(gamma*100000/*+0.5*/));
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

private void writeGAMA() throws IOException {
  if (param.isGammaSet() || param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("gAMA");
    float gamma;
    if (!param.isSRGBIntentSet()) {
      gamma = param.getGamma();
    } else {
      gamma = 1.0F/2.2F; // SRGB gamma
    }
    // TD should include the .5 but causes regard to say
    // everything is different.
    cs.writeInt((int)(gamma*100000/*+0.5*/));
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: liuyueyi/quick-media

private void writeSRGB() throws IOException {
  if (param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("sRGB");
    int intent = param.getSRGBIntent();
    cs.write(intent);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: org.apache.xmlgraphics/batik-codec

private void writeSRGB() throws IOException {
  if (param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("sRGB");
    int intent = param.getSRGBIntent();
    cs.write(intent);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: apache/batik

private void writeSRGB() throws IOException {
  if (param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("sRGB");
    int intent = param.getSRGBIntent();
    cs.write(intent);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

private void writeSRGB() throws IOException {
  if (param.isSRGBIntentSet()) {
    ChunkStream cs = new ChunkStream("sRGB");
    int intent = param.getSRGBIntent();
    cs.write(intent);
    cs.writeToStream(dataOutput);
    cs.close();
  }
}
org.apache.batik.ext.awt.image.codec.pngPNGEncodeParamisSRGBIntentSet

Javadoc

Returns true if an 'sRGB' chunk will be output.

Popular methods of PNGEncodeParam

  • abs
    An abs() function for use by the Paeth predictor.
  • addPrivateChunk
    Adds a private chunk, in binary form, to the list of chunks to be stored with this image.
  • filterRow
    Performs filtering on a row of an image. This method may be overridden in order to provide a custom
  • getChromaticity
    Returns the white point and primary chromaticities in CIE (x, y) space. See the documentation for th
  • getCompressedText
    Returns the text strings to be stored in compressed form with this image as an array of Strings. If
  • getDefaultEncodeParam
    Returns an instance of PNGEncodeParam.Palette,PNGEncodeParam.Gray, or PNGEncodeParam.RGB appropriate
  • getGamma
    Returns the file gamma value for the image. If the file gamma has not previously been set, or has be
  • getICCProfileData
    Returns the ICC profile data to be stored with this image. If the ICC profile has not previously bee
  • getInterlacing
    Returns true if Adam7 interlacing will be used.
  • getModificationTime
    Returns the modification time to be stored with this image. If the bit depth has not previously been
  • getNumPrivateChunks
    Returns the number of private chunks to be written to the output file.
  • getPaletteHistogram
    Returns the palette histogram to be stored with this image. If the histogram has not previously been
  • getNumPrivateChunks,
  • getPaletteHistogram,
  • getPhysicalDimension,
  • getPrivateChunkData,
  • getPrivateChunkType,
  • getSRGBIntent,
  • getSignificantBits,
  • getText,
  • isBackgroundSet,
  • isChromaticitySet

Popular in Java

  • Reactive rest calls using spring rest template
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Reference (javax.naming)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now