Skip to content

0.4.0 - 2024-11-12

Compare
Choose a tag to compare
@salam99823 salam99823 released this 06 Dec 00:55
· 41 commits to main since this release

Changes

Added

Changed

Fixed

Removed

Migration guide

Definition of edges.

let edges = Edges::from(&image);

About feature glam-latest

This feature added for lightweight of usage of this crate without bevy
and support latest version of glam.

Note

The bevy feature disables the glam-latest feature.

[dependencies.edges]
version = "*" # Your version
default-features = false
features = ["glam-latest"]

About Edges::new

Now, you mustn't call Edges::march_edges.
To get edges from custom data, you can use Edges::new.

Warning

The data size must be greater than or equal to height multiplied by width.

let data: &[u8];
let edges = Edges::new(height, width, data);

let objects = edges.multi_image_edge_translated();

About Edges

If you use match-case on Edges to return an image.
You should now use one of these options.
This will preserve your ownership of the image.

let data: &[u8];
let edges: Edges = Edges::new(height, width, data);

let edges: Edges = Edges::from(&image);