![]() |
![]() |
![]() |
![]() |
[
About ImageMagick
] [ Command-line Tools Processing Options Usage Program Interfaces MagickWand MagickCore PerlMagick Magick++ Architecture ] [ Install from Source Unix Windows Binary Releases Unix Mac OS X Windows Resources ] [ Download ] [ Site Map Links ] [ Sponsors: ] |
ClonePixelView() makes a copy of the specified pixel view. The format of the ClonePixelView method is: PixelView *ClonePixelView(const PixelView *pixel_view) A description of each parameter follows: viewthe magick view. DestroyPixelView() deallocates memory associated with a pixel view. The format of the DestroyPixelView method is: PixelView *DestroyPixelView(PixelView *pixel_view) A description of each parameter follows: pixel_viewthe pixel view. DuplexTransferPixelViewIterator() iterates over three pixel views in parallel and calls your transfer method for each scanline of the view. The first and second pixel region is not confined to the image canvas-- that is you can include negative offsets or widths or heights that exceed the image dimension. However, the transfer pixel view is confined to the image canvas-- that is no negative offsets or widths or heights that exceed the image dimension. Any pixels set in the transfer view are and synced back to your image. Use this pragma: #pragma omp critical to define a section of code in your callback transfer method that must be executed by a single thread at a time. The format of the DuplexTransferPixelViewIterator method is: MagickBooleanType DuplexTransferPixelViewIterator(PixelView *pixel_view, PixelView *duplex_view,PixelView *transfer_view, DuplexTransferPixelViewMethod method,void *context) A description of each parameter follows: pixel_viewthe pixel view. duplex_viewthe second pixel view. transfer_viewthe transfer view. methodthe transfer callback method. contextthe user defined context. GetPixelViewException() returns the severity, reason, and description of any error that occurs when utilizing a pixel view. The format of the GetPixelViewException method is: char *GetPixelViewException(const PixelWand *pixel_view, ExceptionType *severity) A description of each parameter follows: pixel_viewthe pixel pixel_view. severitythe severity of the error is returned here. GetPixelViewHeight() returns the pixel view height. The format of the GetPixelViewHeight method is: unsigned long GetPixelViewHeight(const PixelView *pixel_view) A description of each parameter follows: pixel_viewthe pixel view. GetPixelViewIterator() iterates over the pixel view in parallel and calls your get method for each scanline of the view. The pixel region is not confined to the image canvas-- that is you can include negative offsets or widths or heights that exceed the image dimension. Any updates to pixels are ignored. Use this pragma: #pragma omp critical to define a section of code in your callback get method that must be executed by a single thread at a time. The format of the GetPixelViewIterator method is: MagickBooleanType GetPixelViewIterator(PixelView *pixel_view, GetPixelViewMethod method,void *context) A description of each parameter follows: pixel_viewthe pixel view. methodthe get callback method. contextthe user defined context. GetPixelViewPixels() returns the pixel view pixel_wands. The format of the GetPixelViewPixels method is: PixelWand *GetPixelViewPixels(const PixelView *pixel_view) A description of each parameter follows: pixel_viewthe pixel view. GetPixelViewWand() returns the magick wand associated with the pixel view. The format of the GetPixelViewWand method is: MagickWand *GetPixelViewWand(const PixelView *pixel_view) A description of each parameter follows: pixel_viewthe pixel view. GetPixelViewWidth() returns the pixel view width. The format of the GetPixelViewWidth method is: unsigned long GetPixelViewWidth(const PixelView *pixel_view) A description of each parameter follows: pixel_viewthe pixel view. GetPixelViewX() returns the pixel view x offset. The format of the GetPixelViewX method is: long GetPixelViewX(const PixelView *pixel_view) A description of each parameter follows: pixel_viewthe pixel view. GetPixelViewY() returns the pixel view y offset. The format of the GetPixelViewY method is: long GetPixelViewY(const PixelView *pixel_view) A description of each parameter follows: pixel_viewthe pixel view. IsPixelView() returns MagickTrue if the the parameter is verified as a pixel view container. The format of the IsPixelView method is: MagickBooleanType IsPixelView(const PixelView *pixel_view) A description of each parameter follows: pixel_viewthe pixel view. NewPixelView() returns a pixel view required for all other methods in the Pixel View API. The format of the NewPixelView method is: PixelView *NewPixelView(MagickWand *wand) A description of each parameter follows: wandthe wand. NewPixelViewRegion() returns a pixel view required for all other methods in the Pixel View API. The format of the NewPixelViewRegion method is: PixelView *NewPixelViewRegion(MagickWand *wand,const long x, const long y,const unsigned long width,const unsigned long height) A description of each parameter follows: wandthe magick wand. x,y,columns,rowsThese values define the perimeter of a region of pixel_wands view. SetPixelViewIterator() iterates over the pixel view in parallel and calls your set method for each scanline of the view. The pixel region is confined to the image canvas-- that is no negative offsets or widths or heights that exceed the image dimension. The pixels are initiallly undefined and any settings you make are synced back to your image. Use this pragma: #pragma omp critical to define a section of code in your callback set method that must be executed by a single thread at a time. The format of the SetPixelViewIterator method is: MagickBooleanType SetPixelViewIterator(PixelView *pixel_view, SetPixelViewMethod method,void *context) A description of each parameter follows: pixel_viewthe pixel view. methodthe set callback method. contextthe user defined context. TransferPixelViewIterator() iterates over two pixel views in parallel and calls your transfer method for each scanline of the view. The first pixel region is not confined to the image canvas-- that is you can include negative offsets or widths or heights that exceed the image dimension. However, the transfer pixel view is confined to the image canvas-- that is no negative offsets or widths or heights that exceed the image dimension. Any pixels set in the transfer view are and synced back to your image. Use this pragma: #pragma omp critical to define a section of code in your callback transfer method that must be executed by a single thread at a time. The format of the TransferPixelViewIterator method is: MagickBooleanType TransferPixelViewIterator(PixelView *pixel_view, PixelView *transfer_view,TransferPixelViewMethod method,void *context) A description of each parameter follows: pixel_viewthe pixel view. transfer_viewthe transfer view. methodthe transfer callback method. contextthe user defined context. UpdatePixelViewIterator() iterates over the pixel view in parallel and calls your update method for each scanline of the view. The pixel region is confined to the image canvas-- that is no negative offsets or widths or heights that exceed the image dimension. Updates to pixels are permitted and synced back to your image. Use this pragma: #pragma omp critical to define a section of code in your callback update method that must be executed by a single thread at a time. The format of the UpdatePixelViewIterator method is: MagickBooleanType UpdatePixelViewIterator(PixelView *pixel_view, UpdatePixelViewMethod method,void *context) A description of each parameter follows: pixel_viewthe pixel view. methodthe update callback method. contextthe user defined context. |