Tabnine Logo
BMPReader.getSizeX
Code IndexAdd Tabnine to your IDE (free)

How to use
getSizeX
method
in
loci.formats.in.BMPReader

Best Java code snippets using loci.formats.in.BMPReader.getSizeX (Showing top 6 results out of 315)

origin: openmicroscopy/bioformats

thumbReader.setId("thumbnail.bmp");
for (int i=0; i<getSeriesCount(); i++) {
 core.get(i).thumbSizeX = thumbReader.getSizeX();
 core.get(i).thumbSizeY = thumbReader.getSizeY();
origin: ome/formats-gpl

thumbReader.setId("thumbnail.bmp");
for (int i=0; i<getSeriesCount(); i++) {
 core.get(i).thumbSizeX = thumbReader.getSizeX();
 core.get(i).thumbSizeY = thumbReader.getSizeY();
origin: ome/formats-bsd

m.sizeY = in.readInt();
if (getSizeX() < 1) {
 LOGGER.trace("Invalid width: {}; using the absolute value", getSizeX());
 m.sizeX = Math.abs(getSizeX());
 addGlobalMeta("Image width", getSizeX());
 addGlobalMeta("Image height", getSizeY());
 addGlobalMeta("Bits per pixel", bpp);
origin: openmicroscopy/bioformats

m.sizeY = in.readInt();
if (getSizeX() < 1) {
 LOGGER.trace("Invalid width: {}; using the absolute value", getSizeX());
 m.sizeX = Math.abs(getSizeX());
 addGlobalMeta("Image width", getSizeX());
 addGlobalMeta("Image height", getSizeY());
 addGlobalMeta("Bits per pixel", bpp);
origin: openmicroscopy/bioformats

int rowLength = (getSizeX() * (isIndexed() ? 1 : getSizeC()) * bpp) / 8;
if (pad == 0) pad = ((rowLength * bpp) / 8) % 4;
else pad *= getSizeC();
int planeSize = getSizeX() * getSizeC() * h;
if (bpp >= 8) planeSize *= (bpp / 8);
else planeSize /= (8 / bpp);
   int nBits = (getSizeX() - w - x) * bpp * effectiveC + pad * 8;
 boolean endOfFile = false;
 int index = 0;
 byte[] plane = new byte[getSizeX() * getSizeY() * getRGBChannelCount()];
 while(!endOfFile) {
  byte firstByte = (byte) (in.readBits(bpp) & 0xff);
origin: ome/formats-bsd

int rowLength = (getSizeX() * (isIndexed() ? 1 : getSizeC()) * bpp) / 8;
if (pad == 0) pad = ((rowLength * bpp) / 8) % 4;
else pad *= getSizeC();
int planeSize = getSizeX() * getSizeC() * h;
if (bpp >= 8) planeSize *= (bpp / 8);
else planeSize /= (8 / bpp);
   int nBits = (getSizeX() - w - x) * bpp * effectiveC + pad * 8;
 boolean endOfFile = false;
 int index = 0;
 byte[] plane = new byte[getSizeX() * getSizeY() * getRGBChannelCount()];
 while(!endOfFile) {
  byte firstByte = (byte) (in.readBits(bpp) & 0xff);
loci.formats.inBMPReadergetSizeX

Popular methods of BMPReader

  • getSizeY
  • <init>
    Constructs a new BMP reader.
  • addGlobalMeta
  • close
  • getMetadataOptions
  • getRGBChannelCount
  • getSizeC
  • isIndexed
  • isInterleaved
  • makeFilterMetadata
  • readPlane
  • setId
  • readPlane,
  • setId

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
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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