change_color_profile 0.0.1
change_color_profile: ^0.0.1 copied to clipboard
This is a plugin that changes the color profile of an image
Change_Color_Profile_Flutter #
Getting started #
in pubspec.yaml
change_color_profile: ^0.0.1
Example #
import 'package:change_color_profile/change_color_profile.dart';
import 'package:image/image.dart' as img;
void main() async {
// selectData is Uint8List
// buffer is Uint8List
// profile is ColroProfile Name
var buffer = await changeColorProfile(profile, selectData);
// byteBuffer is Bytebuffer
final byteBuffer = buffer.buffer;
final newImage = img.Image.fromBytes(width: _width, height: _height, bytes: byteBuffer, numChannels: 3, order: img.ChannelOrder.rgb);
final data = img.encodeBmp(newImage);
changeImage = Image.memory(data);
}
File Location(ColorProfile) #
Android
Flutter Project Dir > ios > Runner
iOS
Flutter Project Dir > android > app > src > main > assets