Adobe Systems, Inc.

ImageViewConcept< VIEW > Struct Template Reference
[GIL's 2-Dimensional Pixel Image View]

GIL's 2-dimensional view over immutable GIL pixels. More...

#include <gil_concept.hpp>

List of all members.


Public Member Functions

void constraints ()

Public Attributes

VIEW view

Detailed Description

template<typename VIEW>
struct ImageViewConcept< VIEW >

\code
template <typename VIEW>
concept ImageViewConcept : RandomAccess2DImageViewConcept<VIEW> {
    where PixelValueConcept<value_type>;
    where PixelIteratorConcept<x_iterator>;        
    where PixelIteratorConcept<y_iterator>;
    where x_coord_t == y_coord_t;
    
    typename pixel_t       = value_type;
    typename channel_t     = pixel_t::channel_t;
    typename color_space_t = pixel_t::color_space_t;    
    typename coord_t       = x_coord_t;
    typename dynamic_step_t; where ImageViewConcept<dynamic_step_t>; where StepIteratorConcept<dynamic_step_t::x_iterator>;
    static const size_t      num_channels = color_space_t::num_channels;

    // Create with a horizontal iterator at the top left corner, dimensions and number of bytes per row
    VIEW::VIEW(const point_t&,      const x_iterator&, std::ptrdiff_t row_bytes);
    VIEW::VIEW(x_coord_t,y_coord_t, const x_iterator&, std::ptrdiff_t row_bytes);
    
    std::ptrdiff_t VIEW::row_bytes()    const; // the number of bytes per row
    std::ptrdiff_t VIEW::pix_bytestep() const; // the number of bytes between two adjacent pixels on the same row
};

Definition at line 1509 of file gil_concept.hpp.

Copyright © 2006 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google