1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) 2017, Marty Mills <daggerbot@gmail.com>
// This software is available under the terms of the zlib license.
// See COPYING.md for more information.

#[cfg(feature = "crc")]
extern crate crc;
extern crate dcolor;
extern crate dnum;
extern crate dvec;
#[cfg(feature = "flate2")]
extern crate flate2;
extern crate try_from;

/// Portable Network Graphics support.
#[cfg(feature = "png")]
pub mod png;

mod bounds;
mod image;
#[allow(dead_code)]
mod io_ext;
mod vec_image;

pub use bounds::{Boundless, Bounds, IsBoundless, Size2};
pub use image::{
    Bounded,
    Cloned,
    Fill,
    Image,
    ImageExt,
    Map,
    RenderFrom,
    SubImage2,
    Transform,
    fill,
};
pub use vec_image::{VecImage2};

/// Integer coordinate type.
pub type Coord = i32;