Show / Hide Table of Contents

Class Source

An input connection.

Inheritance
System.Object
System.Runtime.ConstrainedExecution.CriticalFinalizerObject
System.Runtime.InteropServices.SafeHandle
GObject
VipsObject
Connection
Source
SourceCustom
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.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 Source : Connection, IDisposable

Methods

| Improve this Doc View Source

Dispose(Boolean)

Manage NetVips.Internal.GObject lifetime.

Declaration
protected override void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing
Overrides
System.Runtime.InteropServices.SafeHandle.Dispose(System.Boolean)
| Improve this Doc View Source

NewFromDescriptor(Int32)

Make a new source from a file descriptor (a small integer).

Declaration
public static Source NewFromDescriptor(int descriptor)
Parameters
Type Name Description
System.Int32 descriptor

Read from this file descriptor.

Returns
Type Description
Source

A new Source.

Remarks

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

var source = Source.NewFromDescriptor(0);

Makes a descriptor attached to stdin.

You can pass this source to (for example) NewFromSource(Source, String, String, Nullable<Boolean>, VOption).

Exceptions
Type Condition
VipsException

If unable to create a new Source from descriptor.

| Improve this Doc View Source

NewFromFile(String)

Make a new source from a filename.

Declaration
public static Source NewFromFile(string filename)
Parameters
Type Name Description
System.String filename

Read from this filename.

Returns
Type Description
Source

A new Source.

Remarks

Make a new source that is attached to the named file. For example:

var source = Source.NewFromFile("myfile.jpg");

You can pass this source to (for example) NewFromSource(Source, String, String, Nullable<Boolean>, VOption).

Exceptions
Type Condition
VipsException

If unable to create a new Source from filename.

| Improve this Doc View Source

NewFromMemory(Byte[])

Make a new source from a memory object.

Declaration
public static Source NewFromMemory(byte[] data)
Parameters
Type Name Description
System.Byte[] data

The memory object.

Returns
Type Description
Source

A new Source.

Remarks

Make a new source that is attached to the memory object. For example:

var source = Source.NewFromMemory(data);

You can pass this source to (for example) NewFromSource(Source, String, String, Nullable<Boolean>, VOption).

Exceptions
Type Condition
VipsException

If unable to create a new Source from data.

| Improve this Doc View Source

NewFromMemory(Char[])

Make a new source from a memory object.

Declaration
public static Source NewFromMemory(char[] data)
Parameters
Type Name Description
System.Char[] data

The memory object.

Returns
Type Description
Source

A new Source.

Remarks

Make a new source that is attached to the memory object. For example:

var source = Source.NewFromMemory(data);

You can pass this source to (for example) NewFromSource(Source, String, String, Nullable<Boolean>, VOption).

Exceptions
Type Condition
VipsException

If unable to create a new Source from data.

| Improve this Doc View Source

NewFromMemory(String)

Make a new source from a memory object.

Declaration
public static Source NewFromMemory(string data)
Parameters
Type Name Description
System.String data

The memory object.

Returns
Type Description
Source

A new Source.

Remarks

Make a new source that is attached to the memory object. For example:

var source = Source.NewFromMemory(data);

You can pass this source to (for example) NewFromSource(Source, String, String, Nullable<Boolean>, VOption).

Exceptions
Type Condition
VipsException

If unable to create a new Source from data.

Implements

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