パッケージ、リポジトリ、アプリカテゴリを検索

floodfill_image のカバー
パッケージ詳細v0.0.8

floodfill_image

指定された画像でペイントバケツ機能を使用できる Flutter ウィジェット。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
99
いいね数
71
Pub ポイント
140

パッケージをインストール

flutter pub add floodfill_image

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

floodfill_image パッケージは、画像上でペイントバケツ機能を可能にする Flutter ウィジェットを提供し、ユーザーが選択した色で連続する領域を塗りつぶすことができます。定義された境界内に色を塗りつぶす必要があるインタラクティブな描画や編集アプリケーションに最適です。このパッケージは、Android、iOS、Web、macOS、Windows、Linux など複数のプラットフォームをサポートしており、広範な互換性を確保しています。既存の Flutter アプリにスムーズに統合され、画像ウィジェット上でフラッドフィル操作を実装するためのシンプルな API を提供します。

用途

  • インタラクティブな画像着色アプリ
  • デジタルペインティングツール
  • 画像編集機能
  • 教育用描画アプリケーション
  • ユーザー主導のグラフィックスへの色塗りつぶし

主な機能

  • ペイントバケツフィル機能
  • クロスプラットフォーム対応
  • Image ウィジェットとの簡単な統合
  • リアルタイムのフィル更新
  • さまざまな画像ソースをサポートしています

適している対象

  • 描画ツールを構築するアプリ開発者
  • 教育ソフトウェアの作成者
  • Flutter を使用するデジタルアーティスト
  • インタラクティブな画像操作を必要とするアプリ
  • 画像に素早く色を塗りつぶしたいユーザー

注意事項

  • 大きな画像や複雑な画像ではパフォーマンスが異なる場合があります
  • ピクセルベースの塗りつぶしに限定され、高度なマスク機能は利用不可
  • 正確な操作のために、タッチ入力の取り扱いに注意が必要です
  • 高解像度の画像に対して最適化が必要になる場合があります
  • ベクター画像編集には適していません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Flood Fill Image

Version GitHub license Support

Overview

Flutter widget that can use paint bucket functionality on the provided image using Queue-Linear Flood Fill Algorithm by J. Dunlap. For more info check out my blog : Flood Fill in Flutter

Kindly like:+1: the package at pub dev or star:star: the repo in github if you find this library useful. :wink:

demo dog gif

Usage

FloodFillImage(
    imageProvider: AssetImage("assets/dog.jpg"),
    fillColor: Colors.amber,
    avoidColor: [Colors.transparent, Colors.black],
)

Parameters

Name Type Description
imageProvider ImageProvider The image to display via ImageProvider.
You can use AssetImage or NetworkImage.
fillColor Color Color use for filling the area.
isFillActive bool Set false if you want to disable on touch fill function.
Default value is true.
avoidColor List<Color> List of color that determines to which Color is/are needed to be avoided upon touch.
Note: Nearest color shade is applied.
tolerance int Set fill value tolerance that ranges from 0 to 100.
Default value is 8.
width int Width of the image. Parent widget width will be prioritize if it's provided and less than the image width.
height int Height of the image. Parent widget height will be prioritize if it's provided and less than the image height.
alignment AlignmentGeometry Alignment of the image.
loadingWidget Widget Widget to show while the image is being processed on initialization.
It uses CircularProgressIndicator by default.
onFloodFillStart Function(Offset position,Image image) Callback function that returns the touch position and an Image from dart:ui when flood fill starts.
Note: Touch coordinate is relative to the image dimension.
onFloodFillEnd Function(Image image) Callback function that returns an Image from dart:ui when flood fill ended.

Coffee

Buy Me A Coffee

License

MIT License, see the LICENSE.md file for details.

カテゴリー

依存関係

依存関係一覧 1 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。