Skip to content

Re-export pixel format types when bitmap_backend feature is enabled #377

Description

@38

We need to re-export the pixel format types as well for usability.

See the following question in discussions.

--

Hello,
It's a silly thing but I can't figure out where to find RGBPixel for the bitmap back-end.

Recently, the back-ends were merged into plotters itself. To accommodate for this, I've modded my Cargo.toml as thus:

plotters = { git = "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/plotters-rs/plotters.git", default_features = false, features = ["line_series", "ttf", "bitmap_backend"] }
#plotters-bitmap = { git = "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/plotters-rs/plotters-bitmap.git" } # No longer needed.

And in my source file I have:

use plotters::prelude::*;
use plotters_bitmap::bitmap_pixel::RGBPixel;   // <-- This is WRONG.
//use plotters_bitmap::BitMapBackend; // Not needed anymore, is part of the prelude.

The issue is that I can't figure-out the path to RBGPixel now...

Originally posted by @TomDeRybel in #376

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions