ImageMethods Class Reference

#include <ImageMethods.h>

List of all members.

Static Public Member Functions

static void paintImage2CDCAsRGB (CDC &dc, const Image &image, CRect destinationRect)
static void paintImage2CDCAsYUV (CDC &dc, const Image &image, CRect destinationRect)
static void paintImage2CDCAsYUV (CDC &dcMem, const Image &image, CRect destinationRect, bool bwImage)
static void paintColorClassImage2CDC (CDC &dc, const ColorClassImage &colorClassImage, CRect destinationRect)
static void paint_U_V_ColorSpaceUsage2CDC (CDC &dcMem, const Image &image)
static void paint_U_V_ColorSpaceUsage2CDC (BITMAPINFOHEADER *pBuffer, const Image &image)
static void paint_U_Y_ColorSpaceUsage2CDC (CDC &dcMem, const Image &image)
static void paint_U_Y_ColorSpaceUsage2CDC (BITMAPINFOHEADER *pBuffer, const Image &image)
static void paint_V_Y_ColorSpaceUsage2CDC (CDC &dcMem, const Image &image)
static void paint_V_Y_ColorSpaceUsage2CDC (BITMAPINFOHEADER *pBuffer, const Image &image)
static void writeRobotControlLogoToImage (Image &image)


Detailed Description

Defines static methods to paint and manipulate images.

Definition at line 19 of file ImageMethods.h.


Member Function Documentation

void ImageMethods::paint_U_V_ColorSpaceUsage2CDC ( BITMAPINFOHEADER *  pBuffer,
const Image image 
) [static]

Paints the color space usage of an image to a bitmap. The three color channels of the image are interpreted as y, u and v. The view to the color space is along the y axis. The pixels are added to the bitmap so the old bitmap is not overwritten everywehre.

Parameters:
image the image to paint.
pBuffer Points to the bitmap the color space usage is painted to.

Definition at line 311 of file ImageMethods.cpp.

References b, and image.

void ImageMethods::paint_U_V_ColorSpaceUsage2CDC ( CDC &  dcMem,
const Image image 
) [static]

Paints the color space usage of an image to a CDC. The three color channels of the image are interpreted as y, u and v. The view to the color space is along the y axis.

Parameters:
image the image to paint.
dcMem The CDC the color space usage is painted to.

Definition at line 365 of file ImageMethods.cpp.

References image.

void ImageMethods::paint_U_Y_ColorSpaceUsage2CDC ( BITMAPINFOHEADER *  pBuffer,
const Image image 
) [static]

Paints the color space usage of an image to a bitmap. The three color channels of the image are interpreted as y, u and v. The view to the color space is along the v axis. The pixels are added to the bitmap so the old bitmap is not overwritten everywehre.

Parameters:
image the image to paint.
pBuffer Points to the bitmap the color space usage is painted to.

Definition at line 478 of file ImageMethods.cpp.

References b, and image.

void ImageMethods::paint_U_Y_ColorSpaceUsage2CDC ( CDC &  dcMem,
const Image image 
) [static]

Paints the color space usage of an image to a CDC. The three color channels of the image are interpreted as y, u and v. The view to the color space is along the v axis.

Parameters:
image The image.
dcMem The CDC the color space usage is painted to.

Definition at line 533 of file ImageMethods.cpp.

References image.

void ImageMethods::paint_V_Y_ColorSpaceUsage2CDC ( BITMAPINFOHEADER *  pBuffer,
const Image image 
) [static]

Paints the color space usage of an image to a bitmap. The three color channels of the image are interpreted as y, u and v. The view to the color space is along the u axis. The pixels are added to the bitmap so the old bitmap is not overwritten everywehre.

Parameters:
image the image to paint.
pBuffer Points to the bitmap the color space usage is painted to.

Definition at line 394 of file ImageMethods.cpp.

References b, and image.

void ImageMethods::paint_V_Y_ColorSpaceUsage2CDC ( CDC &  dcMem,
const Image image 
) [static]

Paints the color space usage of an image to a CDC. The three color channels of the image are interpreted as y, u and v. The view to the color space is along the u axis.

Parameters:
image The image.
dcMem The CDC the color space usage is painted to.

Definition at line 449 of file ImageMethods.cpp.

References image.

void ImageMethods::paintColorClassImage2CDC ( CDC &  dc,
const ColorClassImage colorClassImage,
CRect  destinationRect 
) [static]

Paints a color class image to a CDC.

Parameters:
dc The CDC the image is painted to.
colorClassImage the image to paint.
destinationRect Specifies where the color class image is painted in the CDC.

Definition at line 16 of file ImageMethods.cpp.

References b, ColorClasses::colorClassToRGB(), ColorClassImage::height, ColorClassImage::image, and ColorClassImage::width.

Referenced by ImageView::draw(), HSIColorTableToolZoomDlg::OnPaint(), CTSLColorTableToolDlgBar::OnPaint(), CHSIColorTableToolDlgBar::OnPaint(), and CColorTable64DlgBar::OnPaint().

void ImageMethods::paintImage2CDCAsRGB ( CDC &  dc,
const Image image,
CRect  destinationRect 
) [static]

Definition at line 261 of file ImageMethods.cpp.

References image, and pStart.

Referenced by ImageDrawingManager::drawImageToOffScreenDC().

void ImageMethods::paintImage2CDCAsYUV ( CDC &  dcMem,
const Image image,
CRect  destinationRect,
bool  bwImage 
) [static]

Paints an image to a CDC. The three color channels of the image are interpreted as y, u and v.

Parameters:
dc The CDC the image is painted to.
image the image to paint.
destinationRect Specifies where the image is painted in the CDC.
bwImage Specifies if a color image or a black and white Image is drawn.

Definition at line 96 of file ImageMethods.cpp.

References b, image, int(), and pStart.

void ImageMethods::paintImage2CDCAsYUV ( CDC &  dc,
const Image image,
CRect  destinationRect 
) [static]

Paints an image to a CDC. The three color channels of the image are interpreted as y, u and v.

Parameters:
dc The CDC the image is painted to.
image the image to paint.
destinationRect Specifies where the image is painted in the CDC.

Definition at line 86 of file ImageMethods.cpp.

References image.

Referenced by ImageView::draw(), ImageDrawingManager::drawImageToOffScreenDC(), CRobotRemoteDlg2::OnPaint(), HSIColorTableToolZoomDlg::OnPaint(), CTSLColorTableToolDlgBar::OnPaint(), CHSIColorTableToolDlgBar::OnPaint(), and CColorTable64DlgBar::OnPaint().

void ImageMethods::writeRobotControlLogoToImage ( Image image  )  [static]

Writes the RobotControl logo to the image and initializes the rest of the image.

Parameters:
image The image to paint.

Definition at line 561 of file ImageMethods.cpp.

References image.

Referenced by CColorTable64DlgBar::OnInitDialog().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:37:59 2006 for DT2005.panorama by  doxygen 1.4.7