24 |
* $Id$ |
* $Id$ |
25 |
*. |
*. |
26 |
* This file is part of the XForms library package. |
* This file is part of the XForms library package. |
27 |
* Copyright (c) 1993, 1998-2002 By T.C. Zhao |
* Copyright (c) 1993, 1998-2002 By T.C. Zhao |
28 |
* All rights reserved. |
* All rights reserved. |
29 |
*. |
*. |
30 |
* |
* |
40 |
|
|
41 |
|
|
42 |
/******************************************************************** |
/******************************************************************** |
43 |
* general pixel transformation |
* general pixel transformation |
44 |
********************************************************************/ |
********************************************************************/ |
45 |
int |
int |
46 |
flimage_transform_pixels(FL_IMAGE * im, int *red, int *green, int *blue) |
flimage_transform_pixels(FL_IMAGE * im, int *red, int *green, int *blue) |
47 |
{ |
{ |
48 |
int i, j; |
int i, j; |
71 |
im->completed = i; |
im->completed = i; |
72 |
im->visual_cue(im,"Transforming"); |
im->visual_cue(im,"Transforming"); |
73 |
} |
} |
74 |
|
|
75 |
for (j = 0; j < sub->w; j++) |
for (j = 0; j < sub->w; j++) |
76 |
{ |
{ |
77 |
r[j] = red[r[j]]; |
r[j] = red[r[j]]; |
96 |
|
|
97 |
|
|
98 |
/******************************************************************** |
/******************************************************************** |
99 |
* tint. |
* tint. |
100 |
******************************************************************{*/ |
******************************************************************{*/ |
101 |
int |
int |
102 |
flimage_tint(FL_IMAGE * im, unsigned int packed, double opacity) |
flimage_tint(FL_IMAGE * im, unsigned int packed, double opacity) |