• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java NativeCMM类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.apache.harmony.awt.gl.color.NativeCMM的典型用法代码示例。如果您正苦于以下问题:Java NativeCMM类的具体用法?Java NativeCMM怎么用?Java NativeCMM使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

NativeCMM类属于org.apache.harmony.awt.gl.color包,在下文中一共展示了NativeCMM类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: ICC_Transform

点赞 3

import org.apache.harmony.awt.gl.color.NativeCMM; //导入依赖的package包/类
/**
 * Constructs a multiprofile ICC transform
 * @param profiles - list of ICC profiles
 * @param renderIntents - only hints for CMM
 */
public ICC_Transform(ICC_Profile[] profiles, int[] renderIntents) {
    int numProfiles = profiles.length;

    long[] profileHandles = new long[numProfiles];
    for (int i=0; i<numProfiles; i++) {
        profileHandles[i] = NativeCMM.getHandle(profiles[i]);
    }

    transformHandle = NativeCMM.cmmCreateMultiprofileTransform(
            profileHandles,
            renderIntents);

    src = profiles[0];
    dst = profiles[numProfiles-1];
    numInputChannels = src.getNumComponents();
    numOutputChannels = dst.getNumComponents();
}
 

开发者ID:dritanlatifi,
项目名称:AndroidPrefuse,
代码行数:23,
代码来源:ICC_Transform.java

示例2: getData

点赞 3

import org.apache.harmony.awt.gl.color.NativeCMM; //导入依赖的package包/类
public byte[] getData(int tagSignature) {
    int tagSize = 0;
    try {
        tagSize = NativeCMM.cmmGetProfileElementSize(
                profileHandle,
                tagSignature
            );
    } catch (CMMException e) {
        // We'll get this exception if there's no element with
        // the specified tag signature
        return null;
    }

    byte[] data = new byte[tagSize];
    NativeCMM.cmmGetProfileElement(profileHandle, tagSignature, data);
    return data;
}
 

开发者ID:windwardadmin,
项目名称:android-awt,
代码行数:18,
代码来源:ICC_Profile.java

示例3: getData

点赞 2

import org.apache.harmony.awt.gl.color.NativeCMM; //导入依赖的package包/类
/**
 * Gets a tagged data element from the profile as a byte array. Elements are
 * identified by tag signatures as defined in the ICC specification.
 * 
 * @param tagSignature
 *            the ICC tag signature for the data element to get.
 * @return a byte array that contains the tagged data element.
 */
public byte[] getData(int tagSignature) {
    int tagSize = 0;
    try {
        tagSize = NativeCMM.cmmGetProfileElementSize(profileHandle, tagSignature);
    } catch (CMMException e) {
        // We'll get this exception if there's no element with
        // the specified tag signature
        return null;
    }

    byte[] data = new byte[tagSize];
    NativeCMM.cmmGetProfileElement(profileHandle, tagSignature, data);
    return data;
}
 

开发者ID:dritanlatifi,
项目名称:AndroidPrefuse,
代码行数:23,
代码来源:ICC_Profile.java

示例4: finalize

点赞 2

import org.apache.harmony.awt.gl.color.NativeCMM; //导入依赖的package包/类
/**
 * Frees the resources associated with an ICC_Profile object.
 */
@Override
protected void finalize() {
    if (profileHandle != 0 && !handleStolen) {
        NativeCMM.cmmCloseProfile(profileHandle);
    }

    // Always remove because key no more exist
    // when object is destroyed
    NativeCMM.removeHandle(this);
}
 

开发者ID:dritanlatifi,
项目名称:AndroidPrefuse,
代码行数:14,
代码来源:ICC_Profile.java

示例5: setData

点赞 2

import org.apache.harmony.awt.gl.color.NativeCMM; //导入依赖的package包/类
public void setData(int tagSignature, byte[] tagData) {
    NativeCMM.cmmSetProfileElement(profileHandle, tagSignature, tagData);
    // Remove cached header data if header is modified
    if (tagSignature == icSigHead) {
        headerData = null;
    }
}
 

开发者ID:windwardadmin,
项目名称:android-awt,
代码行数:8,
代码来源:ICC_Profile.java

示例6: finalize

点赞 2

import org.apache.harmony.awt.gl.color.NativeCMM; //导入依赖的package包/类
@Override
protected void finalize() {
    if (profileHandle!=0 && !handleStolen) {
        NativeCMM.cmmCloseProfile(profileHandle);
    }

    // Always remove because key no more exist
    // when object is destroyed
    NativeCMM.removeHandle(this);
}
 

开发者ID:windwardadmin,
项目名称:android-awt,
代码行数:11,
代码来源:ICC_Profile.java

示例7: finalize

点赞 2

import org.apache.harmony.awt.gl.color.NativeCMM; //导入依赖的package包/类
@Override
protected void finalize() {
    if (transformHandle != 0) {
        NativeCMM.cmmDeleteTransform(transformHandle);
    }
}
 

开发者ID:dritanlatifi,
项目名称:AndroidPrefuse,
代码行数:7,
代码来源:ICC_Transform.java

示例8: getDataSize

点赞 2

import org.apache.harmony.awt.gl.color.NativeCMM; //导入依赖的package包/类
private int getDataSize(int tagSignature) {
    return NativeCMM.cmmGetProfileElementSize(
            profileHandle,
            tagSignature
        );
}
 

开发者ID:windwardadmin,
项目名称:android-awt,
代码行数:7,
代码来源:ICC_Profile.java

示例9: ICC_Profile

点赞 2

import org.apache.harmony.awt.gl.color.NativeCMM; //导入依赖的package包/类
private ICC_Profile(byte[] data) {
    profileHandle = NativeCMM.cmmOpenProfile(data);
    NativeCMM.addHandle(this, profileHandle);
}
 

开发者ID:mike10004,
项目名称:appengine-imaging,
代码行数:5,
代码来源:ICC_Profile.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)