Control.DrawToBitmap(Bitmap, Rectangle) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
支援渲染到指定的位圖。
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 方法有以下限制:
ArgumentException可能會拋出大型點陣圖。 最大允許尺寸因機器而異。
DrawToBitmap 不支援
InkWindows XP Tablet PC Edition 2005 作業系統的控制項。DrawToBitmap若 Visible 的TextBox屬性設為
false,則不會繪製子節點TextBox。容器內的控制項則是反向渲染。
DrawToBitmap 對於 ,並非完全功能 RichTextBox;僅繪製點陣圖的邊界。