[][src]Enum rsvg_internals::surface_utils::shared_surface::SurfaceType

pub enum SurfaceType {
    SRgb,
    LinearRgb,
    AlphaOnly,
}

Types of pixel data in a ImageSurface.

Variants

SRgb

The pixel data is in the sRGB color space.

LinearRgb

The pixel data is in the linear sRGB color space.

AlphaOnly

The pixel data is alpha-only (contains meaningful data only in the alpha channel).

A number of methods are optimized for alpha-only surfaces. For example, linearization and unlinearization have no effect for alpha-only surfaces.

Methods

impl SurfaceType[src]

pub fn combine(self, other: SurfaceType) -> SurfaceType[src]

Combines surface types

If combining two alpha-only surfaces, the result is alpha-only. If one is alpha-only, the result is the other. If none is alpha-only, the types should be the same.

Panics

Panics if the surface types are not alpha-only and differ.

Trait Implementations

impl Clone for SurfaceType[src]

impl Copy for SurfaceType[src]

impl Debug for SurfaceType[src]

impl Eq for SurfaceType[src]

impl From<ColorInterpolationFilters> for SurfaceType[src]

impl Hash for SurfaceType[src]

impl PartialEq<SurfaceType> for SurfaceType[src]

impl StructuralEq for SurfaceType[src]

impl StructuralPartialEq for SurfaceType[src]

Auto Trait Implementations

impl RefUnwindSafe for SurfaceType

impl Send for SurfaceType

impl Sync for SurfaceType

impl Unpin for SurfaceType

impl UnwindSafe for SurfaceType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Scalar for T where
    T: PartialEq<T> + Copy + Any + Debug
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,