【问题标题】:How to convert an Image.file() object to a Image file in flutter如何在颤动中将 Image.file() 对象转换为图像文件
【发布时间】:2022-01-08 15:39:23
【问题描述】:

我正在使用滤镜在屏幕上显示带有滤镜效果的图像

图像.file( 图像文件, 颜色:color.withOpacity(0.5), colorBlendMode:BlendMode.hardLight, ),

我需要将这些颜色效果写入'imagefile'

【问题讨论】:

    标签: flutter


    【解决方案1】:

    Image.file(); 是一个小部件,如果您需要将小部件作为图像写入磁盘。 看看这个Creating raw image from Widget or Canvas

    否则,如果您需要编辑图像(例如添加过滤器) 也许它有效 How To Create A Filtered Image In Flutter

    或以下包装 https://pub.dev/packages/photofilters

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-19
    • 2020-08-11
    • 1970-01-01
    • 2020-09-30
    • 1970-01-01
    相关资源
    最近更新 更多