< prev index next >
modules/javafx.graphics/src/main/java/com/sun/pisces/RendererBase.java
Print this page
rev 10044 : 8166230: use @Native annotation in graphics, media classes
Reviewed-by: kcr
*** 1,7 ****
/*
! * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 23,32 ****
--- 23,34 ----
* questions.
*/
package com.sun.pisces;
+ import java.lang.annotation.Native;
+
public final class RendererBase {
/**
* @defgroup CompositingRules Compositing rules supported by PISCES
* When drawing two objects to one pixel area, there are several possibilities
*** 52,73 ****
* look through transparent green glass bottle at some object, we can see
* mixture of glass and objects colors. Composite color is alpha-weigth average
* of source and destination.
* @see setCompositeRule(int), PiscesRenderer.setComposite(int, float)
*/
! public static final int COMPOSITE_CLEAR = 0;
! public static final int COMPOSITE_SRC = 1;
! public static final int COMPOSITE_SRC_OVER = 2;
/**
* Constant indicating 8/8/8/8 ARGB alpha-premultiplied pixel data stored
* in a <code>int</code> array.
*/
! public static final int TYPE_INT_ARGB_PRE = 1;
! public static final int IMAGE_MODE_NORMAL = 1;
! public static final int IMAGE_MODE_MULTIPLY = 2;
! public static final int IMAGE_FRAC_EDGE_KEEP = 0;
! public static final int IMAGE_FRAC_EDGE_PAD = 1;
! public static final int IMAGE_FRAC_EDGE_TRIM = 2;
}
--- 54,75 ----
* look through transparent green glass bottle at some object, we can see
* mixture of glass and objects colors. Composite color is alpha-weigth average
* of source and destination.
* @see setCompositeRule(int), PiscesRenderer.setComposite(int, float)
*/
! @Native public static final int COMPOSITE_CLEAR = 0;
! @Native public static final int COMPOSITE_SRC = 1;
! @Native public static final int COMPOSITE_SRC_OVER = 2;
/**
* Constant indicating 8/8/8/8 ARGB alpha-premultiplied pixel data stored
* in a <code>int</code> array.
*/
! @Native public static final int TYPE_INT_ARGB_PRE = 1;
! @Native public static final int IMAGE_MODE_NORMAL = 1;
! @Native public static final int IMAGE_MODE_MULTIPLY = 2;
! @Native public static final int IMAGE_FRAC_EDGE_KEEP = 0;
! @Native public static final int IMAGE_FRAC_EDGE_PAD = 1;
! @Native public static final int IMAGE_FRAC_EDGE_TRIM = 2;
}
< prev index next >