Gimp.Layer – gimp-3.0 Reference Manual
Packages
gimp-3.0
Gimp
Layer
from_mask
get_by_id
Layer
Layer.from_drawable
Layer.from_pixbuf
Layer.from_surface
Layer.from_visible
add_alpha
add_mask
copy
create_mask
flatten
get_apply_mask
get_blend_space
get_composite_mode
get_composite_space
get_edit_mask
get_lock_alpha
get_mask
get_mode
get_opacity
get_show_mask
is_floating_sel
remove_mask
resize
resize_to_image_size
scale
set_apply_mask
set_blend_space
set_composite_mode
set_composite_space
set_edit_mask
set_lock_alpha
set_mode
set_offsets
set_opacity
set_show_mask
Layer
Object Hierarchy:
Description:
[
CCode
( type_id =
"gimp_layer_get_type ()"
) ]
public
class
Layer
:
Drawable
Operations on a single layer.
All known sub-classes:
GroupLayer
LinkLayer
TextLayer
VectorLayer
Namespace:
Gimp
Package:
gimp-3.0
Content:
Static methods:
public
static
unowned
Layer
from_mask
(
LayerMask
mask)
Get the specified mask's layer.
public
static
unowned
Layer
?
get_by_id
(
int32
layer_id)
Returns a
Layer
representing
layer_id
.
Creation methods:
public
Layer
(
Image
image,
string
? name,
int
width,
int
height,
ImageType
type,
double
opacity,
LayerMode
mode)
Create a new layer.
public
Layer.from_drawable
(
Drawable
drawable,
Image
dest_image)
Create a new layer by copying an existing drawable.
public
Layer.from_pixbuf
(
Image
image,
string
name,
Pixbuf
pixbuf,
double
opacity,
LayerMode
mode,
double
progress_start,
double
progress_end)
Create a new layer from a
gdkpixbuf
.
public
Layer.from_surface
(
Image
image,
string
name,
Surface
surface,
double
progress_start,
double
progress_end)
Create a new layer from a [type@cairo.
public
Layer.from_visible
(
Image
image,
Image
dest_image,
string
? name)
Create a new layer from what is visible in an image.
Methods:
public
bool
add_alpha
()
Add an alpha channel to the layer if it doesn't already have one.
public
bool
add_mask
(
LayerMask
mask)
Add a layer mask to the specified layer.
public
unowned
Layer
copy
()
Copy a layer.
public
unowned
LayerMask
create_mask
(
AddMaskType
mask_type)
Create a layer mask for the specified layer.
public
bool
flatten
()
Remove the alpha channel from the layer if it has one.
public
bool
get_apply_mask
()
Get the apply mask setting of the specified layer.
public
LayerColorSpace
get_blend_space
()
Get the blend space of the specified layer.
public
LayerCompositeMode
get_composite_mode
()
Get the composite mode of the specified layer.
public
LayerColorSpace
get_composite_space
()
Get the composite space of the specified layer.
public
bool
get_edit_mask
()
Get the edit mask setting of the specified layer.
public
bool
get_lock_alpha
()
Get the lock alpha channel setting of the specified layer.
public
unowned
LayerMask
get_mask
()
Get the specified layer's mask if it exists.
public
LayerMode
get_mode
()
Get the combination mode of the specified layer.
public
double
get_opacity
()
Get the opacity of the specified layer.
public
bool
get_show_mask
()
Get the show mask setting of the specified layer.
public
bool
is_floating_sel
()
Is the specified layer a floating selection?
public
bool
remove_mask
(
MaskApplyMode
mode)
Remove the specified layer mask from the layer.
public
bool
resize
(
int
new_width,
int
new_height,
int
offx,
int
offy)
Resize the layer to the specified extents.
public
bool
resize_to_image_size
()
Resize a layer to the image size.
public
bool
scale
(
int
new_width,
int
new_height,
bool
local_origin)
Scale the layer using the default interpolation method.
public
bool
set_apply_mask
(
bool
apply_mask)
Set the apply mask setting of the specified layer.
public
bool
set_blend_space
(
LayerColorSpace
blend_space)
Set the blend space of the specified layer.
public
bool
set_composite_mode
(
LayerCompositeMode
composite_mode)
Set the composite mode of the specified layer.
public
bool
set_composite_space
(
LayerColorSpace
composite_space)
Set the composite space of the specified layer.
public
bool
set_edit_mask
(
bool
edit_mask)
Set the edit mask setting of the specified layer.
public
bool
set_lock_alpha
(
bool
lock_alpha)
Set the lock alpha channel setting of the specified layer.
public
bool
set_mode
(
LayerMode
mode)
Set the combination mode of the specified layer.
public
bool
set_offsets
(
int
offx,
int
offy)
Set the layer offsets.
public
bool
set_opacity
(
double
opacity)
Set the opacity of the specified layer.
public
bool
set_show_mask
(
bool
show_mask)
Set the show mask setting of the specified layer.
Inherited Members:
All known members inherited from class Gimp.Drawable
append_filter
brightness_contrast
color_balance
colorize_hsl
curves_explicit
curves_spline
desaturate
edit_bucket_fill
edit_clear
edit_fill
edit_gradient_fill
edit_stroke_item
edit_stroke_selection
equalize
extract_component
fill
foreground_extract
free_shadow
get_bpp
get_buffer
get_by_id
get_filters
get_format
get_height
get_offsets
get_pixel
get_shadow_buffer
get_sub_thumbnail
get_sub_thumbnail_data
get_thumbnail
get_thumbnail_data
get_thumbnail_format
get_width
has_alpha
histogram
hue_saturation
invert
is_gray
is_indexed
is_rgb
levels
levels_stretch
mask_bounds
mask_intersect
merge_filter
merge_filters
merge_shadow
offset
posterize
set_pixel
shadows_highlights
threshold
type
type_with_alpha
update
All known members inherited from class Gimp.Item
@delete
attach_parasite
detach_parasite
get_by_id
get_children
get_color_tag
get_expanded
get_id
get_image
get_lock_content
get_lock_position
get_lock_visibility
get_name
get_parasite
get_parasite_list
get_parent
get_tattoo
get_visible
id
id_is_channel
id_is_drawable
id_is_group_layer
id_is_layer
id_is_layer_mask
id_is_link_layer
id_is_path
id_is_selection
id_is_text_layer
id_is_valid
id_is_vector_layer
is_channel
is_drawable
is_group
is_group_layer
is_layer
is_layer_mask
is_link_layer
is_path
is_selection
is_text_layer
is_valid
is_vector_layer
set_color_tag
set_expanded
set_lock_content
set_lock_position
set_lock_visibility
set_name
set_tattoo
set_visible
transform_2d
transform_flip
transform_flip_simple
transform_matrix
transform_perspective
transform_rotate
transform_rotate_simple
transform_scale
transform_shear
transform_translate
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref