ThinpicFlutterBindings class

Bindings for src/thinpic_flutter.h.

Regenerate bindings with dart run ffigen --config ffigen.yaml.

Constructors

ThinpicFlutterBindings.new(DynamicLibrary dynamicLibrary)
The symbols are looked up in dynamicLibrary.
ThinpicFlutterBindings.fromLookup(Pointer<T> lookup<T extends NativeType>(String symbolName))
The symbols are looked up with lookup.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

auto_compress_image(Pointer<Char> input_path, int quality) CompressedImageResult
Auto-compress function that tries multiple formats to find the smallest file
compress_image(Pointer<Char> input_path, int quality) CompressedImageResult
Main compression functions with format support
compress_image_with_format(Pointer<Char> input_path, int quality, ImageFormat format) CompressedImageResult
compress_image_with_size(Pointer<Char> input_path, int quality, int target_width, int target_height) CompressedImageResult
New function with optional width and height parameters If both width and height are provided, the smallest dimension will be used to maintain aspect ratio If only one is provided, the other will be calculated to maintain aspect ratio If both are 0 or negative, no resizing will be applied
compress_image_with_size_and_format(Pointer<Char> input_path, int quality, int target_width, int target_height, ImageFormat format) CompressedImageResult
compress_large_dslr_image(Pointer<Char> input_path, int quality) CompressedImageResult
compress_large_dslr_image_with_format(Pointer<Char> input_path, int quality, ImageFormat format) CompressedImageResult
compress_large_image(Pointer<Char> input_path, int quality) CompressedImageResult
compress_large_image_with_format(Pointer<Char> input_path, int quality, ImageFormat format) CompressedImageResult
detect_format_from_path(Pointer<Char> input_path) ImageFormat
Helper function to detect format from file extension
fast_webp_compress(Pointer<Char> input_path, int quality) CompressedImageResult
Fast WebP compression for speed-critical applications
free_compressed_buffer(Pointer<Uint8> buffer) → void
Utility
get_image_info(Pointer<Char> input_path) ImageInfoData
Image info
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shutdown_vips() → void
smart_compress_image(Pointer<Char> input_path, int target_kb, int type) CompressedImageResult
smart_compress_image_with_format(Pointer<Char> input_path, int target_kb, int type, ImageFormat format) CompressedImageResult
test_vips_basic() int
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited