dqoi 0.0.0-alpha.1 dqoi: ^0.0.0-alpha.1 copied to clipboard
A Dart implementation of the "Quite OK Image Format", with a command line interface for console use and a library for use in applications.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate dqoi
Use it
The package has the following executables:
$ dqoi
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dqoi
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dqoi: ^0.0.0-alpha.1
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dqoi/decode.dart';
import 'package:dqoi/encode.dart';
import 'package:dqoi/qoi.dart';
import 'package:dqoi/shared/color.dart';
import 'package:dqoi/shared/consts.dart';