[
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: pixel_viewthe pixel view. DestroyPixelView() deallocates memory associated with a pixel view. The format of the DestroyPixelView method is: PixelView *DestroyPixelView(PixelView *pixel_view, const unsigned long number_wands,const unsigned long number_threads) A description of each parameter follows: pixel_viewthe pixel view. number_wandthe number of pixel wands. number_threadsnumber of threads. DuplexTransferPixelViewIterator() iterates over three pixel views in parallel and calls your transfer method for each scanline of the view. The source and duplex 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 destination pixel view is confined to the image canvas-- that is no negative offsets or widths or heights that exceed the image dimension are permitted. 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 *source, PixelView *duplex,PixelView *destination, DuplexTransferPixelViewMethod transfer,void *context) A description of each parameter follows: sourcethe source pixel view. duplexthe duplex pixel view. destinationthe destination pixel view. transferthe 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 the pixels in your callback 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 *source, GetPixelViewMethod get,void *context) A description of each parameter follows: sourcethe source pixel view. getthe 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 in the callback method are automagically 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 *destination, SetPixelViewMethod set,void *context) A description of each parameter follows: destinationthe pixel view. setthe 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 source 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 destination pixel view is confined to the image canvas-- that is no negative offsets or widths or heights that exceed the image dimension are permitted. 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 *source, PixelView *destination,TransferPixelViewMethod transfer,void *context) A description of each parameter follows: sourcethe source pixel view. destinationthe destination pixel view. transferthe 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 are permitted. Updates to pixels in your callback are automagically synced back to the 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 *source, UpdatePixelViewMethod update,void *context) A description of each parameter follows: sourcethe source pixel view. updatethe update callback method. contextthe user defined context. |