Show / Hide Table of Contents

Class Target

An output connection.

Inheritance
System.Object
System.Runtime.ConstrainedExecution.CriticalFinalizerObject
System.Runtime.InteropServices.SafeHandle
GObject
VipsObject
Connection
Target
TargetCustom
Implements
System.IDisposable
Inherited Members
Connection.GetFileName()
Connection.GetNick()
VipsObject.GetTypeOf(String)
VipsObject.GetBlurb(String)
VipsObject.Get(String)
VipsObject.Set(IntPtr, String, Object)
VipsObject.SetString(String)
VipsObject.GetDescription()
GObject.SignalConnect(String, Delegate, IntPtr)
GObject.ReleaseHandle()
GObject.IsInvalid
GObject.RefCount
System.Runtime.InteropServices.SafeHandle.handle
System.Runtime.InteropServices.SafeHandle.Close()
System.Runtime.InteropServices.SafeHandle.DangerousAddRef(System.Boolean)
System.Runtime.InteropServices.SafeHandle.DangerousGetHandle()
System.Runtime.InteropServices.SafeHandle.DangerousRelease()
System.Runtime.InteropServices.SafeHandle.Dispose()
System.Runtime.InteropServices.SafeHandle.Dispose(System.Boolean)
System.Runtime.InteropServices.SafeHandle.SetHandle(System.IntPtr)
System.Runtime.InteropServices.SafeHandle.SetHandleAsInvalid()
System.Runtime.InteropServices.SafeHandle.IsClosed
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NetVips
Assembly: NetVips.dll
Syntax
public class Target : Connection, IDisposable

Methods

| Improve this Doc View Source

NewToDescriptor(Int32)

Make a new target to write to a file descriptor (a small integer).

Declaration
public static Target NewToDescriptor(int descriptor)
Parameters
Type Name Description
System.Int32 descriptor

Write to this file descriptor.

Returns
Type Description
Target

A new Target.

Remarks

Make a new target that is attached to the descriptor. For example:

var target = Target.NewToDescriptor(1);

Makes a descriptor attached to stdout.

You can pass this target to (for example) WriteToTarget(Target, String, VOption).

Exceptions
Type Condition
VipsException

If unable to create a new Target from descriptor.

| Improve this Doc View Source

NewToFile(String)

Make a new target to write to a file.

Declaration
public static Target NewToFile(string filename)
Parameters
Type Name Description
System.String filename

Write to this this file.

Returns
Type Description
Target

A new Target.

Remarks

Make a new target that will write to the named file. For example:

var target = Target.NewToFile("myfile.jpg");

You can pass this target to (for example) WriteToTarget(Target, String, VOption).

Exceptions
Type Condition
VipsException

If unable to create a new Target from filename.

| Improve this Doc View Source

NewToMemory()

Make a new target to write to an area of memory.

Declaration
public static Target NewToMemory()
Returns
Type Description
Target

A new Target.

Remarks

Make a new target that will write to memory. For example:

var target = Target.NewToMemory();

You can pass this target to (for example) WriteToTarget(Target, String, VOption).

After writing to the target, fetch the bytes from the target object with:

var bytes = target.Get("blob");
Exceptions
Type Condition
VipsException

If unable to create a new Target.

Implements

System.IDisposable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX