class Vips::Source

Overview

Input connection. For example

source = Vips::Source.new_from_file("k2.jpg")
image = Vips::Image.new_from_source(source)

Direct Known Subclasses

Defined in:

vips/source.cr

Class Method Summary

Instance Method Summary

Instance methods inherited from class Vips::Connection

filename : String | Nil filename, nick : String | Nil nick

Instance methods inherited from class Vips::VipsObject

get(name : String) get, get_blurb(name : String) get_blurb, get_description get_description, get_pspec(name : String) : LibVips::GParamSpec | Nil get_pspec, get_typeof(name : String) get_typeof, post_close(&block : -> ) post_close, print_all print_all, set(gtype, name, value)
set(options : String)
set

Instance methods inherited from class Vips::GObject

get(name : String, gval : GValue) get, object_ref object_ref, ref_count ref_count, release_handle release_handle, set(name : String, gval : GValue) set, signal_connect(signal : String, callback : Proc, data : Pointer(Void) = Pointer(Void).null) : LibVips::Gulong signal_connect, signal_disconnect(handler_id : LibVips::Gulong)
signal_disconnect(func : Proc, data : Pointer(Void) = Pointer(Void).null)
signal_disconnect(data : LibVips::Gpointer)
signal_disconnect

Class Method Detail

def self.new_from_descriptor(descriptor : Int) #

Create a new source from a file descriptor. File descriptors are small integers, for example 0 is stdin.

Pass sources to Image.new_from_source to load images from them.


[View source]
def self.new_from_file(filename : String) #

Create a new source from a file name.

Pass sources to Image.new_from_source to load images from them.


[View source]
def self.new_from_memory(data : String | Bytes | IO) #

Create a new source from an area of memory. Memory areas can be String, Bytes, or IO

Pass sources to Image.new_from_source to load images from them.


[View source]

Instance Method Detail

def finalize #

[View source]