renamed gimp_convert_*() functions to gimp_image_convert_*().

2003-12-04  Michael Natterer  <mitch@gimp.org>

	* tools/pdbgen/pdb/convert.pdb: renamed gimp_convert_*() functions
	to gimp_image_convert_*().

	* libgimp/gimpimage.[ch]: removed gimp_image_convert_* #defines.

	* libgimp/gimpcompat.h: added old stuff.

	* app/pdb/convert_cmds.c
	* libgimp/gimpconvert_pdb.[ch]: regenerated.

	* plug-ins/common/gifload.c
	* plug-ins/common/gih.c
	* plug-ins/common/sample_colorize.c
	* plug-ins/common/winclipboard.c
	* plug-ins/script-fu/scripts/burn-in-anim.scm
	* plug-ins/script-fu/scripts/chrome-it.scm
	* plug-ins/script-fu/scripts/crystal-logo.scm
	* plug-ins/script-fu/scripts/fuzzyborder.scm
	* plug-ins/script-fu/scripts/gimp-headers.scm
	* plug-ins/script-fu/scripts/gimp-labels.scm
	* plug-ins/script-fu/scripts/sota-chrome-logo.scm
	* plug-ins/script-fu/scripts/spinning-globe.scm: changed accordingly.
This commit is contained in:
Michael Natterer
2003-12-04 14:52:49 +00:00
committed by Michael Natterer
parent 6af5072c6b
commit a7b5c6a462
13 changed files with 88 additions and 85 deletions

View File

@ -895,7 +895,7 @@ ReadImage (FILE *fd,
#ifdef GIFDEBUG
g_print ("GIF: Promoting image to RGB...\n");
#endif
gimp_convert_rgb (image_ID);
gimp_image_convert_rgb (image_ID);
break;
}

View File

@ -555,7 +555,7 @@ gih_load_one_brush (gint fd,
case 4:
image_type = GIMP_RGBA_IMAGE;
if (gimp_image_base_type (image_ID) == GIMP_GRAY)
gimp_convert_rgb (image_ID);
gimp_image_convert_rgb (image_ID);
break;
default:

View File

@ -3109,7 +3109,7 @@ p_main_colorize (gint mc_flags)
{
if (mc_flags & MC_DST_REMAP)
{
gimp_convert_rgb (gimp_drawable_get_image (g_values.dst_id));
gimp_image_convert_rgb (gimp_drawable_get_image (g_values.dst_id));
}
}

View File

@ -559,7 +559,7 @@ CB_PasteImage (gboolean interactive,
}
else
{
/* ??? gimp_convert_rgb (image_ID);
/* ??? gimp_image_convert_rgb (image_ID);
*/
drawable_ID = gimp_layer_new (image_ID, _("Pasted"), nWidth, nHeight,
nBitsPS <= 8 ? GIMP_INDEXED_IMAGE : GIMP_RGB_IMAGE,

View File

@ -40,7 +40,7 @@
(set! img (car (gimp-image-duplicate org-img)))
(gimp-image-undo-disable img)
(if (> (car (gimp-drawable-type org-layer)) 1 )
(gimp-convert-rgb img))
(gimp-image-convert-rgb img))
(set! source-layer (aref (cadr (gimp-image-get-layers img)) 0 ))
(set! bg-source-layer (aref (cadr (gimp-image-get-layers img)) 1 ))
(set! source-layer-width (car (gimp-drawable-width source-layer)))
@ -160,7 +160,7 @@
(if (= optimize TRUE)
(begin
(gimp-convert-indexed img 1 WEB-PALETTE 250 FALSE TRUE "")
(gimp-image-convert-indexed img 1 WEB-PALETTE 250 FALSE TRUE "")
(set! img-out (car (plug-in-animationoptimize 0
img
bl-layer)))))

View File

@ -155,7 +155,7 @@
(gimp-bucket-fill bg-layer PATTERN-BUCKET-FILL NORMAL-MODE 100 0 FALSE 0 0)
(gimp-selection-none img)
(gimp-convert-rgb img)
(gimp-image-convert-rgb img)
(gimp-color-balance layer1 0 TRUE (shadows (rval hc)) (shadows (gval hc)) (shadows (bval hc)))
(gimp-color-balance layer1 1 TRUE (midtones (rval hc)) (midtones (gval hc)) (midtones (bval hc)))

View File

@ -143,7 +143,7 @@
(gimp-levels disp-map 0 0 255 1.0 96 255)
(if (= (car (gimp-drawable-is-rgb bg-layer)) 1)
(gimp-convert-rgb img))
(gimp-image-convert-rgb img))

View File

@ -43,7 +43,7 @@
(if (> (car (gimp-drawable-type inLayer))
1
)
(gimp-convert-rgb theImage)
(gimp-image-convert-rgb theImage)
)
(set! theWidth (car (gimp-image-width inImage)))
(set! theHeight (car (gimp-image-height inImage)))

View File

@ -104,7 +104,8 @@
(plug-in-autocrop 1 img text-layer))
(if (= index TRUE)
(gimp-convert-indexed img FS-DITHER MAKE-PALETTE num-colors FALSE FALSE ""))
(gimp-image-convert-indexed img FS-DITHER MAKE-PALETTE num-colors
FALSE FALSE ""))
(gimp-palette-set-foreground old-fg)

View File

@ -76,7 +76,8 @@
(gimp-selection-clear img)))
(if (= index TRUE)
(gimp-convert-indexed img FS-DITHER MAKE-PALETTE num-colors FALSE FALSE ""))
(gimp-image-convert-indexed img FS-DITHER MAKE-PALETTE num-colors
FALSE FALSE ""))
(gimp-palette-set-foreground old-fg)
(gimp-palette-set-background old-bg)

View File

@ -152,7 +152,7 @@
(gimp-bucket-fill text-layer PATTERN-BUCKET-FILL NORMAL-MODE 100 0 FALSE 0 0)
(gimp-selection-none img)
(gimp-convert-rgb img)
(gimp-image-convert-rgb img)
(gimp-color-balance layer1 0 TRUE (shadows (rval hc)) (shadows (gval hc)) (shadows (bval hc)))
(gimp-color-balance layer1 1 TRUE (midtones (rval hc)) (midtones (gval hc)) (midtones (bval hc)))

View File

@ -87,7 +87,8 @@
(if (= inIndex 0)
()
(gimp-convert-indexed theImage FS-DITHER MAKE-PALETTE inIndex FALSE FALSE ""))
(gimp-image-convert-indexed theImage FS-DITHER MAKE-PALETTE inIndex
FALSE FALSE ""))
(if (= inCopy TRUE)
(begin

View File

@ -33,7 +33,7 @@ CODE
);
}
sub convert_rgb {
sub image_convert_rgb {
$blurb = 'Convert specified image to RGB color';
$help = <<'HELP';
@ -47,7 +47,7 @@ HELP
&simple_invoke('GIMP_RGB');
}
sub convert_grayscale {
sub image_convert_grayscale {
$blurb = 'Convert specified image to grayscale (256 intensity levels)';
$help = <<'HELP';
@ -61,7 +61,7 @@ HELP
&simple_invoke('GIMP_GRAY');
}
sub convert_indexed {
sub image_convert_indexed {
$blurb = 'Convert specified image to and Indexed image';
$help = <<'HELP';
@ -163,7 +163,7 @@ CODE
"core/gimpimage-convert.h" "core/gimpdatafactory.h"
"core/gimppalette.h");
@procs = qw(convert_rgb convert_grayscale convert_indexed);
@procs = qw(image_convert_rgb image_convert_grayscale image_convert_indexed);
%exports = (app => [@procs], lib => [@procs]);
$desc = 'Convert';