All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.lept4j.Pix Maven / Gradle / Ivy

Go to download

# Lept4J ## Description: A Java JNA wrapper for Leptonica Image Processing library. Lept4J is released and distributed under the Apache License, v2.0.

The newest version!
package net.sourceforge.lept4j;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.ptr.IntByReference;
import java.util.Arrays;
import java.util.List;
/**
 * Basic Pix
* native declaration : pix.h:14
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java or JNA. */ public class Pix extends Structure { /** * width in pixels
* C type : l_uint32 */ public int w; /** * height in pixels
* C type : l_uint32 */ public int h; /** * depth in bits (bpp)
* C type : l_uint32 */ public int d; /** * number of samples per pixel
* C type : l_uint32 */ public int spp; /** * 32-bit words/line
* C type : l_uint32 */ public int wpl; /** * reference count (1 if no clones)
* C type : l_uint32 */ public int refcount; /** * image res (ppi) in x direction
* C type : l_int32 */ public int xres; /** * image res (ppi) in y direction
* C type : l_int32 */ public int yres; /** * input file format, IFF_*
* C type : l_int32 */ public int informat; /** * special instructions for I/O, etc
* C type : l_int32 */ public int special; /** * text string associated with pix
* C type : char* */ public Pointer text; /** * colormap (may be null)
* C type : PixColormap* */ public net.sourceforge.lept4j.PixColormap.ByReference colormap; /** * the image data
* C type : l_uint32* */ public IntByReference data; public Pix() { super(); } /** * Gets this Structure's field names in their proper order. * @return list of ordered field names */ @Override protected List getFieldOrder() { return Arrays.asList("w", "h", "d", "spp", "wpl", "refcount", "xres", "yres", "informat", "special", "text", "colormap", "data"); } public Pix(Pointer peer) { super(peer); read(); } public static class ByReference extends Pix implements Structure.ByReference { }; public static class ByValue extends Pix implements Structure.ByValue { }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy