Class VTarget
java.lang.Object
app.photofox.vipsffm.VTarget
Represents a VipsTarget, boxed to avoid exposing its raw MemorySegment
-
Method Summary
Modifier and TypeMethodDescriptionfinal booleangetBlob()Only valid for memory-backed targets (eg vianewToMemory(Arena)) Returns the contents of the backing VBlobDeprecated, for removal: This API element is subject to removal in a future version.Gets the rawMemorySegment(C pointer) for this VipsTarget 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 VTargetnewToDescriptor(Arena arena, int descriptor) Create a new target pointed at a file descriptor This target can be used with (for example)VImage.writeToTarget(VTarget, String, VipsOption...)static VTargetCreate a new target pointed at an output file This target can be used with (for example)VImage.writeToTarget(VTarget, String, VipsOption...)static VTargetnewToMemory(Arena arena) Create a new memory-backed VipsTarget This target can be used with (for example)VImage.writeToTarget(VTarget, String, VipsOption...)After writing to this target, you can also retrieve the backingVBlobwithgetBlob()
-
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 VipsTarget 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 -
newToDescriptor
Create a new target pointed at a file descriptor This target can be used with (for example)VImage.writeToTarget(VTarget, String, VipsOption...)- Throws:
VipsError
-
newToFile
-
newToMemory
Create a new memory-backed VipsTarget This target can be used with (for example)VImage.writeToTarget(VTarget, String, VipsOption...)After writing to this target, you can also retrieve the backingVBlobwithgetBlob()- Throws:
VipsError
-
getBlob
Only valid for memory-backed targets (eg vianewToMemory(Arena)) Returns the contents of the backing VBlob- Throws:
VipsError
-
getUnsafeStructAddress()