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


Java SunGraphics2D.PAINT_OPAQUECOLOR属性代码示例

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


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

示例1: canRenderLCDText

/**
 * For now, we can only render LCD text if:
 *   - the pixel shaders are available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsDevice.isCapPresent(CAPS_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR   &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:D3DSurfaceData.java

示例2: canRenderLCDText

/**
 * For now, we can only render LCD text if:
 *   - the fragment shader extension is available, and
 *   - blending is disabled, and
 *   - the source color is opaque
 *   - and the destination is opaque
 *
 * Eventually, we could enhance the native OGL text rendering code
 * and remove the above restrictions, but that would require significantly
 * more code just to support a few uncommon cases.
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsConfig.isCapPresent(CAPS_EXT_LCD_SHADER) &&
        sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:18,代码来源:OGLSurfaceData.java

示例3: canRenderLCDText

/**
 * For now, we can only render LCD text if:
 *   - the fragment shader extension is available, and
 *   - the source color is opaque, and
 *   - blending is SrcOverNoEa or disabled
 *   - and the destination is opaque
 *
 * Eventually, we could enhance the native OGL text rendering code
 * and remove the above restrictions, but that would require significantly
 * more code just to support a few uncommon cases.
 */
public boolean canRenderLCDText(SunGraphics2D sg2d) {
    return
        graphicsConfig.isCapPresent(CAPS_EXT_LCD_SHADER) &&
        sg2d.surfaceData.getTransparency() == Transparency.OPAQUE &&
        sg2d.paintState <= SunGraphics2D.PAINT_OPAQUECOLOR &&
        (sg2d.compositeState <= SunGraphics2D.COMP_ISCOPY ||
         (sg2d.compositeState <= SunGraphics2D.COMP_ALPHA && canHandleComposite(sg2d.composite)));
}
 
开发者ID:lambdalab-mirror,项目名称:jdk8u-jdk,代码行数:19,代码来源:OGLSurfaceData.java


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