共用方式為


Control.DrawToBitmap(Bitmap, Rectangle) 方法

定義

支援渲染到指定的位圖。

public:
 void DrawToBitmap(System::Drawing::Bitmap ^ bitmap, System::Drawing::Rectangle targetBounds);
public void DrawToBitmap(System.Drawing.Bitmap bitmap, System.Drawing.Rectangle targetBounds);
member this.DrawToBitmap : System.Drawing.Bitmap * System.Drawing.Rectangle -> unit
Public Sub DrawToBitmap (bitmap As Bitmap, targetBounds As Rectangle)

參數

bitmap
Bitmap

要畫的點陣圖。

targetBounds
Rectangle

控制所涵蓋的範圍。

備註

DrawToBitmap 方法不支援 ActiveX 控制項。 你可以覆寫事件 OnPrint 並提供自訂列印邏輯。

DrawToBitmap 方法有以下限制:

適用於

另請參閱