Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
9bc546c1
Commit
9bc546c1
authored
Dec 16, 2000
by
Seth Burgess
Browse files
Add alpha automatically on colortoalpha plug-in.
parent
f9ea7212
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
9bc546c1
2000-12-16 Seth Burgess <sjburges@gimp.org>
* plug-ins/common/colortoalpha.c: Change to accecpt RGB input
(automatically add an alpha channel if needed).
2000-12-16 Sven Neumann <sven@gimp.org>
Jens Lautenbacher <jtl@gimp.org>
...
...
plug-ins/common/colortoalpha.c
View file @
9bc546c1
...
...
@@ -120,7 +120,7 @@ query (void)
"Seth Burgess <sjburges@gimp.org>"
,
"7th Aug 1999"
,
N_
(
"<Image>/Filters/Colors/Color to Alpha..."
),
"RGB
A
"
,
"RGB
*
"
,
GIMP_PLUGIN
,
nargs
,
0
,
args
,
NULL
);
...
...
@@ -184,9 +184,13 @@ run (gchar *name,
if
(
status
==
GIMP_PDB_SUCCESS
)
{
/* Make sure that the drawable is indexed or RGB color */
/* Add alpha if not present */
gimp_layer_add_alpha
(
drawable
->
id
);
drawable
=
gimp_drawable_get
(
drawable
->
id
);
/* Make sure that the drawable is RGB color */
if
(
gimp_drawable_is_rgb
(
drawable
->
id
)
&&
gimp_drawable_
has_alpha
(
drawable
->
id
))
gimp_drawable_
is_layer
(
drawable
->
id
))
{
if
(
run_mode
!=
GIMP_RUN_NONINTERACTIVE
)
gimp_progress_init
(
"Removing color..."
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment