当前位置: 首页>>代码示例>>Java>>正文


Java ProfileDeferralMgr.activateProfiles方法代码示例

本文整理汇总了Java中sun.java2d.cmm.ProfileDeferralMgr.activateProfiles方法的典型用法代码示例。如果您正苦于以下问题:Java ProfileDeferralMgr.activateProfiles方法的具体用法?Java ProfileDeferralMgr.activateProfiles怎么用?Java ProfileDeferralMgr.activateProfiles使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在sun.java2d.cmm.ProfileDeferralMgr的用法示例。


在下文中一共展示了ProfileDeferralMgr.activateProfiles方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getData

import sun.java2d.cmm.ProfileDeferralMgr; //导入方法依赖的package包/类
/**
 * Returns a byte array corresponding to the data of this ICC_Profile.
 * @return A byte array that contains the profile data.
 * @see #setData(int, byte[])
 */
public byte[] getData() {
int profileSize;
byte[] profileData;

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    PCMM mdl = CMSManager.getModule();

    /* get the number of bytes needed for this profile */
    profileSize = mdl.getProfileSize(cmmProfile);

    profileData = new byte [profileSize];

    /* get the data for the profile */
    mdl.getProfileData(cmmProfile, profileData);

    return profileData;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:26,代码来源:ICC_Profile.java

示例2: getData

import sun.java2d.cmm.ProfileDeferralMgr; //导入方法依赖的package包/类
/**
 * Returns a byte array corresponding to the data of this ICC_Profile.
 * @return A byte array that contains the profile data.
 * @see #setData(int, byte[])
 */
public byte[] getData() {
int profileSize;
byte[] profileData;

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    PCMM mdl = CMSManager.getModule();

    /* get the number of bytes needed for this profile */
    profileSize = mdl.getProfileSize(ID);

    profileData = new byte [profileSize];

    /* get the data for the profile */
    mdl.getProfileData(ID, profileData);

    return profileData;
}
 
开发者ID:ZhaoX,项目名称:jdk-1.7-annotated,代码行数:26,代码来源:ICC_Profile.java

示例3: getPCSType

import sun.java2d.cmm.ProfileDeferralMgr; //导入方法依赖的package包/类
/**
 * Returns the color space type of the Profile Connection Space (PCS).
 * Returns one of the color space type constants defined by the
 * ColorSpace class.  This is the "output" color space of the
 * profile.  For an input, display, or output profile useful
 * for tagging colors or images, this will be either TYPE_XYZ or
 * TYPE_Lab and should be interpreted as the corresponding specific
 * color space defined in the ICC specification.  For a device
 * link profile, this could be any of the color space type constants.
 * @return One of the color space type constants defined in the
 * <CODE>ColorSpace</CODE> class.
 */
public int getPCSType() {
    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }
    return getPCSType(cmmProfile);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:19,代码来源:ICC_Profile.java

示例4: setData

import sun.java2d.cmm.ProfileDeferralMgr; //导入方法依赖的package包/类
/**
 * Sets a particular tagged data element in the profile from
 * a byte array. The array should contain data in a format, corresponded
 * to the {@code tagSignature} as defined in the ICC specification, section 10.
 * This method is useful for advanced applets or applications which need to
 * access profile data directly.
 *
 * @param tagSignature The ICC tag signature for the data element
 * you want to set.
 * @param tagData the data to set for the specified tag signature
 * @throws IllegalArgumentException if {@code tagSignature} is not a signature
 *         as defined in the ICC specification.
 * @throws IllegalArgumentException if a content of the {@code tagData}
 *         array can not be interpreted as valid tag data, corresponding
 *         to the {@code tagSignature}.
 * @see #getData
 */
public void setData(int tagSignature, byte[] tagData) {

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    CMSManager.getModule().setTagData(cmmProfile, tagSignature, tagData);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:26,代码来源:ICC_Profile.java

示例5: getPCSType

import sun.java2d.cmm.ProfileDeferralMgr; //导入方法依赖的package包/类
/**
 * Returns the color space type of the Profile Connection Space (PCS).
 * Returns one of the color space type constants defined by the
 * ColorSpace class.  This is the "output" color space of the
 * profile.  For an input, display, or output profile useful
 * for tagging colors or images, this will be either TYPE_XYZ or
 * TYPE_Lab and should be interpreted as the corresponding specific
 * color space defined in the ICC specification.  For a device
 * link profile, this could be any of the color space type constants.
 * @return One of the color space type constants defined in the
 * {@code ColorSpace} class.
 */
public int getPCSType() {
    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }
    return getPCSType(cmmProfile);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:19,代码来源:ICC_Profile.java

示例6: getPCSType

import sun.java2d.cmm.ProfileDeferralMgr; //导入方法依赖的package包/类
/**
 * Returns the color space type of the Profile Connection Space (PCS).
 * Returns one of the color space type constants defined by the
 * ColorSpace class.  This is the "output" color space of the
 * profile.  For an input, display, or output profile useful
 * for tagging colors or images, this will be either TYPE_XYZ or
 * TYPE_Lab and should be interpreted as the corresponding specific
 * color space defined in the ICC specification.  For a device
 * link profile, this could be any of the color space type constants.
 * @return One of the color space type constants defined in the
 * <CODE>ColorSpace</CODE> class.
 */
public int getPCSType() {
    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }
    return getPCSType(ID);
}
 
开发者ID:ZhaoX,项目名称:jdk-1.7-annotated,代码行数:19,代码来源:ICC_Profile.java

示例7: setData

import sun.java2d.cmm.ProfileDeferralMgr; //导入方法依赖的package包/类
/**
 * Sets a particular tagged data element in the profile from
 * a byte array. The array should contain data in a format, corresponded
 * to the {@code tagSignature} as defined in the ICC specification, section 10.
 * This method is useful for advanced applets or applications which need to
 * access profile data directly.
 *
 * @param tagSignature The ICC tag signature for the data element
 * you want to set.
 * @param tagData the data to set for the specified tag signature
 * @throws IllegalArgumentException if {@code tagSignature} is not a signature
 *         as defined in the ICC specification.
 * @throws IllegalArgumentException if a content of the {@code tagData}
 *         array can not be interpreted as valid tag data, corresponding
 *         to the {@code tagSignature}.
 * @see #getData
 */
public void setData(int tagSignature, byte[] tagData) {

    if (ProfileDeferralMgr.deferring) {
        ProfileDeferralMgr.activateProfiles();
    }

    CMSManager.getModule().setTagData(ID, tagSignature, tagData);
}
 
开发者ID:ZhaoX,项目名称:jdk-1.7-annotated,代码行数:26,代码来源:ICC_Profile.java


注:本文中的sun.java2d.cmm.ProfileDeferralMgr.activateProfiles方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。