Class VSource
java.lang.Object
app.photofox.vipsffm.VSource
Represents a VipsSource, boxed to avoid exposing its raw MemorySegment
-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.Gets the rawMemorySegment(C pointer) for this VipsSource struct The memory address' lifetime is bound to the scope of the arena that created it Usage of the memory address is strongly discouraged, but it is available if some functionality is missing, and you need to use it withVipsHelperinthashCode()static VSourcenewFromBlob(Arena arena, VBlob blob) Create a new VSource from a VBlob, usually received from a Vips operationstatic VSourcenewFromBytes(Arena arena, byte[] bytes) Create a new VSource directly from some bytes Note that this makes a full copy of the data, which is inefficient - preferVImage.newFromFile(Arena, String, VipsOption...)and friendsstatic VSourcenewFromDescriptor(Arena arena, int descriptor) Create a new VSource from a file descriptorstatic VSourcenewFromFile(Arena arena, String filename) Create a new VSource from a file pathstatic VSourcenewFromOptions(Arena arena, String options)
-
Method Details
-
equals
-
hashCode
-
getUnsafeAddress
Deprecated, for removal: This API element is subject to removal in a future version. -
getUnsafeStructAddress
Gets the rawMemorySegment(C pointer) for this VipsSource struct The memory address' lifetime is bound to the scope of the arena that created it Usage of the memory address is strongly discouraged, but it is available if some functionality is missing, and you need to use it withVipsHelper -
newFromDescriptor
-
newFromFile
-
newFromBlob
-
newFromBytes
Create a new VSource directly from some bytes Note that this makes a full copy of the data, which is inefficient - preferVImage.newFromFile(Arena, String, VipsOption...)and friends- Throws:
VipsError
-
newFromOptions
-
getUnsafeStructAddress()