Class Operation
Wrap a NetVips.Internal.VipsOperation object.
Inheritance
Implements
Inherited Members
Namespace: NetVips
Assembly: NetVips.dll
Syntax
public class Operation : VipsObject, IDisposable
Methods
| Improve this Doc View SourceCall(String, VOption, Image, Object[])
Call a libvips operation.
Declaration
public static object Call(string operationName, VOption kwargs = null, Image matchImage = null, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | operationName | Operation name. |
VOption | kwargs | Optional arguments. |
Image | matchImage | A Image used as guide. |
System.Object[] | args | An arbitrary number and variety of arguments. |
Returns
Type | Description |
---|---|
System.Object | A new object. |
Remarks
Use this method to call any libvips operation. For example:
var blackImage = Operation.Call("black", 10, 10);
See the Introduction for notes on how this works.
Call(String, VOption, Object[])
Call a libvips operation.
Declaration
public static object Call(string operationName, VOption kwargs = null, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | operationName | Operation name. |
VOption | kwargs | Optional arguments. |
System.Object[] | args | An arbitrary number and variety of arguments. |
Returns
Type | Description |
---|---|
System.Object | A new object. |
Remarks
Use this method to call any libvips operation. For example:
var blackImage = Operation.Call("black", 10, 10);
See the Introduction for notes on how this works.
Call(String, Object[])
Call a libvips operation.
Declaration
public static object Call(string operationName, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String | operationName | Operation name. |
System.Object[] | args | An arbitrary number and variety of arguments. |
Returns
Type | Description |
---|---|
System.Object | A new object. |
Remarks
Use this method to call any libvips operation. For example:
var blackImage = Operation.Call("black", 10, 10);
See the Introduction for notes on how this works.
GetFlags()
Lookup the set of flags for this operation.
Declaration
public Enums.OperationFlags GetFlags()
Returns
Type | Description |
---|---|
Enums.OperationFlags | Flags for this operation. |
NewFromName(String)
Create a new NetVips.Internal.VipsOperation with the specified nickname.
Declaration
public static Operation NewFromName(string operationName)
Parameters
Type | Name | Description |
---|---|---|
System.String | operationName | Nickname of operation to create. |
Returns
Type | Description |
---|---|
Operation | The new operation. |
Remarks
You'll need to set any arguments and build the operation before you can use it. See Call(String, VOption, Image, Object[]) for a higher-level way to make new operations.
Exceptions
Type | Condition |
---|---|
VipsException | If the operation doesn't exist. |