CImage 類的成員

來源:互聯網
上載者:User
最近常用CImage類,所以把他的類成員寫出來,方便查詢。   CImage 成員 操作符
operator HBITMAP 返回綁定到CImage對象的Windows控制代碼.

Construction

CImage 建構函式.

Operations

AlphaBlend

Displays bitmaps that have transparent or semitransparent pixels.    

 顯示包含透明或半透明像素的位元影像。

Attach

Attaches an HBITMAP to a CImage object. Can be used with either non-DIB section bitmaps or DIB section bitmaps.

將一個HBITMAP綁定到一個CImage對象。既可以用於DIB類型位元影像也可以用於非DIB類型位元影像。

BitBlt

Copies a bitmap from the source device context to this current device context.

從源裝置描述表複製位元影像到當前裝置描述表。

Create

Creates a DIB section bitmap and attaches it to the previously constructed CImage object.

建立一個DIB類型位元影像並將它綁定到前邊構造好的CImage對象。

CreateEx

Creates a DIB section bitmap (with additional parameters) and attaches it to the previously constructed CImage object.

建立一個DIB類型的位元影像(使用額外的參數)並將它綁定到前邊構造好的CImage對象。

Destroy

Detaches the bitmap from the CImage object and destroys the bitmap.

解除位元影像和CImage對象的綁定並銷毀位元影像。

Detach

Detaches the bitmap from a CImage object.

解除位元影像和CImage對象的綁定。

Draw

Copies a bitmap from a source rectangle into a destination rectangle. Draw stretches or compresses the bitmap to fit the dimensions of the destination rectangle, if necessary, and handles alpha blending and transparent colors.

從源矩形地區複製一個位元影像到目標矩形地區。Draw展開或壓縮位元影像以適應目標矩形地區的尺寸,如果必要,將處理alpha混合和透明色。

GetBits

Retrieves a pointer to the actual pixel values of the bitmap.

得到指向位元影像一個實際像素值的指標。

GetBPP

Retrieves the bits per pixel.

得到每個像素的位元位。

GetColorTable

Retrieves red, green, blue (RGB) color values from a range of entries in the color table.

從顏色表中的入口範圍得到紅,綠,藍(RGB)顏色值。

GetDC

Retrieves the device context into which the current bitmap is selected.

得到選入當前位元影像的裝置描述表。

GetExporterFilterString

Finds the available image formats and their descriptions.

獲得可用的映像格式和描述。

GetImporterFilterString

Finds the available image formats and their descriptions.

獲得可用的映像格式和描述。

GetHeight

Retrieves the height of the current image in pixels.

得到當前映像高度的像素值。

GetMaxColorTableEntries

Retrieves the maximum number of entries in the color table.

得到顏色表中入口的最大值。

GetPitch

Retrieves the pitch of the current image, in bytes.

得到代表目前映像斜度的位元組數。

GetPixelAddress

Retrieves the address of a given pixel.

得到給定像素的地址。

GetPixel

Retrieves the color of the pixel specified by x and y.

得到指定x和y的像素的顏色。

GetTransparentColor

Retrieves the position of the transparent color in the color table.

得到顏色表中透明色的位置。

GetWidth

Retrieves the width of the current image in pixels.

得到當前映像寬度的像素值。

IsDibSection

Determines if the attached bitmap is a DIB section.

判斷綁定的位元影像是否是DIB類型。

IsIndexed

Indicates that a bitmap's colors are mapped to an indexed palette.

表明位元影像的顏色映射到一個索引的調色盤。

IsNull

Indicates if a source bitmap is currently loaded.

表明源位元影像當前是否裝載。

IsTransparencySupported

Indicates whether the application supports transparent bitmaps and was compiled for Windows 2000 or later.

表明應用程式是否支援透明位元影像並為Windows 2000及以後版本編譯。

LoadFromResource

Loads an image from the specified resource.

從指定的資源裝載一個映像。

Load

Loads an image from the specified file.

從指定的檔案裝載一個映像。

MaskBlt

Combines the color data for the source and destination bitmaps using the specified mask and raster operation.

使用指定的掩碼和柵格操作混合源位元影像和目標位元影像的顏色資料。

PlgBlt

Performs a bit-block transfer from a rectangle in a source device context into a parallelogram in a destination device context.

實現從一個源裝置描述表傳送一個位元塊到目標裝置描述表的一個平行四邊形地區。

ReleaseDC

Releases the device context that was retrieved with CImage::GetDC.

釋放用CImage::GetDC得到的裝置描述表。

ReleaseGDIPlus

Releases resources used by GDI+. Must be called to free resources created by a global CImage object.

釋放GDI+使用的資源。必須調用以便釋放由全域CImage對象建立的資源。

Save

Saves an image as the specified type. Save cannot specify image options.

用指定的類型儲存映像。Save不能指定映像選項。

SetColorTable

Sets red, green, blue RGB) color values in a range of entries in the color table of the DIB section.

設定DIB類型顏色表中入口範圍的紅,綠,藍(RGB)顏色值。

SetPixelIndexed

Sets the pixel at the specified coordinates to the color at the specified index of the palette.

設定指定座標的像素為調色盤中指定索引的顏色值。

SetPixelRGB

Sets the pixel at the specified coordinates to the specified red, green, blue (RGB) value.

設定指定座標的像素為指定的紅,綠,藍(RGB)值。

SetPixel

Sets the pixel at the specified coordinates to the specified color.

設定指定座標的像素為指定的顏色值。

SetTransparentColor

Sets the index of the color to be treated as transparent. Only one color in a palette can be transparent.

設定被作為透明色處理的顏色的索引值。

StretchBlt

Copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary.

從源矩形地區複製一個位元影像到目標矩形地區,如果必要,將展開或壓縮位元影像以適應目標矩形地區的尺寸。

TransparentBlt

Copies a bitmap with transparent color from the source device context to this current device context.

從源裝置描述表複製一個帶透明色的位元影像到當前裝置描述表。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.