Vips.Operation¶
- Subclasses:
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
found_hash |
r |
||
hash |
r |
||
parent_instance |
r |
||
pixels |
r |
Class Details¶
- class Vips.Operation(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- classmethod block_set(name, state)¶
- Parameters:
Set the block state on all operations in the libvips class hierarchy at name and below.
For example:
vips_operation_block_set("VipsForeignLoad", TRUE); vips_operation_block_set("VipsForeignLoadJpeg", FALSE);
Will block all load operations, except JPEG.
Use
vips -l
at the command-line to see the class hierarchy.This call does nothing if the named operation is not found.
See also:
Vips.block_untrusted_set
().
- classmethod new(name)¶
- Parameters:
name (
str
) – nickname of operation to create- Returns:
the new operation.
- Return type:
Return a new
Vips.Operation
with the specified nickname. Useful for language bindings.You’ll need to set any arguments and build the operation before you can use it. See vips_call() for a higher-level way to make new operations.
- get_flags()¶
- Returns:
0 on success, or -1 on error.
- Return type:
Returns the set of flags for this operation.
- invalidate()¶
- do_get_flags() virtual¶
- Returns:
0 on success, or -1 on error.
- Return type:
Returns the set of flags for this operation.
- do_invalidate() virtual¶
Signal Details¶
- Vips.Operation.signals.invalidate(operation)¶
- Signal Name:
invalidate
- Flags:
- Parameters:
operation (
Vips.Operation
) – The object which received the signal