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

net.sourceforge.lept4j.RGBA_Quad 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 java.util.Arrays;
import java.util.List;
/**
 * native declaration : pix.h:30
* 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 RGBA_Quad extends Structure { /** * blue value
* C type : l_uint8 */ public byte blue; /** * green value
* C type : l_uint8 */ public byte green; /** * red value
* C type : l_uint8 */ public byte red; /** * alpha value
* C type : l_uint8 */ public byte alpha; public RGBA_Quad() { super(); } /** * Gets this Structure's field names in their proper order. * @return list of ordered field names */ @Override protected List getFieldOrder() { return Arrays.asList("blue", "green", "red", "alpha"); } /** * @param blue blue value
* C type : l_uint8
* @param green green value
* C type : l_uint8
* @param red red value
* C type : l_uint8
* @param alpha alpha value
* C type : l_uint8 */ public RGBA_Quad(byte blue, byte green, byte red, byte alpha) { super(); this.blue = blue; this.green = green; this.red = red; this.alpha = alpha; } public RGBA_Quad(Pointer peer) { super(peer); read(); } public static class ByReference extends RGBA_Quad implements Structure.ByReference { }; public static class ByValue extends RGBA_Quad implements Structure.ByValue { }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy