mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-25 16:30:09 +01:00
Added function for setting component alpha
This commit is contained in:
parent
1ba0de94fb
commit
d0e30df8cb
5 changed files with 22 additions and 1 deletions
|
|
@ -6,6 +6,7 @@ Anders Carlsson <andersca@gnome.org> Build fixes. New accessor functions.
|
|||
Richard Henderson <rth@twiddle.net> "slim" macros for better shared libraries
|
||||
Owen Taylor <otaylor@redhat.com> Support for both transform and repeat
|
||||
Keith Packard <keithp@keithp.com> The original implementation of the compositing code.
|
||||
David Reveman <c99drn@cs.umu.se> Byte-order and clipping fixes.
|
||||
Vladimir Vukicevic <vladimir@pobox.com> Bug fix.
|
||||
Bryan Worth <bryan@theworths.org> Cleanups to not depend on X header files.
|
||||
Carl Worth <carl@theworths.org> General maintenance. Original port from X server code.
|
||||
|
|
|
|||
|
|
@ -1,8 +1,14 @@
|
|||
2004-09-12 David Reveman <c99drn@cs.umu.se>
|
||||
|
||||
* src/icint.h: slim_hidden_proto pixman_image_set_component_alpha.
|
||||
|
||||
* src/pixman.h: Added pixman_image_set_component_alpha, making it
|
||||
possible to use component alpha.
|
||||
|
||||
* src/icimage.c (pixman_image_set_clip_region): Make a copy of
|
||||
the client owned region.
|
||||
(IcComputeCompositeRegion): Intersect possible client region.
|
||||
Added pixman_image_set_component_alpha.
|
||||
|
||||
* src/icint.h: Include "../config.h".
|
||||
Define IMAGE_BYTE_ORDER and BITMAP_BIT_ORDER correctly.
|
||||
|
|
|
|||
|
|
@ -144,6 +144,15 @@ pixman_image_init (pixman_image_t *image)
|
|||
image->owns_pixels = 0;
|
||||
}
|
||||
|
||||
void
|
||||
pixman_image_set_component_alpha (pixman_image_t *image,
|
||||
int component_alpha)
|
||||
{
|
||||
if (image)
|
||||
image->componentAlpha = component_alpha;
|
||||
}
|
||||
slim_hidden_def(pixman_image_set_component_alpha);
|
||||
|
||||
int
|
||||
pixman_image_set_transform (pixman_image_t *image,
|
||||
pixman_transform_t *transform)
|
||||
|
|
|
|||
|
|
@ -819,6 +819,7 @@ slim_hidden_proto(pixman_color_to_pixel)
|
|||
slim_hidden_proto(pixman_format_init)
|
||||
slim_hidden_proto(pixman_image_destroy)
|
||||
slim_hidden_proto(pixman_fill_rectangles)
|
||||
slim_hidden_proto(pixman_image_set_component_alpha)
|
||||
slim_hidden_proto(pixman_image_set_repeat)
|
||||
slim_hidden_proto(pixman_composite)
|
||||
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
|||
SOFTWARE.
|
||||
|
||||
******************************************************************/
|
||||
/* $Id: pixman.h,v 1.13 2004-04-16 15:32:53 cworth Exp $ */
|
||||
/* $Id: pixman.h,v 1.14 2004-09-12 02:55:24 davidr Exp $ */
|
||||
|
||||
/* libic.h */
|
||||
|
||||
|
|
@ -323,6 +323,10 @@ typedef enum {
|
|||
PIXMAN_FILTER_BILINEAR
|
||||
} pixman_filter_t;
|
||||
|
||||
void
|
||||
pixman_image_set_component_alpha (pixman_image_t *image,
|
||||
int component_alpha);
|
||||
|
||||
int
|
||||
pixman_image_set_transform (pixman_image_t *image,
|
||||
pixman_transform_t *transform);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue