Northwoods.GoWPF 1.3.5 Assembly
MakeBitmap(Size,Double,Point,Double) Method
See Also  Send Feedback
Northwoods.GoXam Namespace > DiagramPanel Class > MakeBitmap Method : MakeBitmap(Size,Double,Point,Double) Method

bmpsize
the size of the resulting bitmap
dpi
bitmap resolution [ignored in Silverlight]
viewpos
a Point in model coordinates
scale
a value of 1.0 is normal; the value must be a positive number. Smaller values produce smaller-looking parts.
Return a bitmap showing the parts in a particular area, drawn at a given scale.

Syntax

Visual Basic (Declaration) 
Public Overloads Function MakeBitmap( _
   ByVal bmpsize As Size, _
   ByVal dpi As Double, _
   ByVal viewpos As Point, _
   ByVal scale As Double _
) As BitmapSource
C# 
public BitmapSource MakeBitmap( 
   Size bmpsize,
   double dpi,
   Point viewpos,
   double scale
)

Parameters

bmpsize
the size of the resulting bitmap
dpi
bitmap resolution [ignored in Silverlight]
viewpos
a Point in model coordinates
scale
a value of 1.0 is normal; the value must be a positive number. Smaller values produce smaller-looking parts.

Return Value

a BitmapSource; in Silverlight the contents may not have been rendered until a later time

Remarks

The diagram must already be visible and fully initialized before this method is able to render anything.

In Silverlight the rendering of the contents of the bitmap occurs asynchronously. Although a BitmapSource is returned immediately, it will not immediately contain the expected bits. In order to programmatically access the contents of the bitmap, you should call MakeBitmap(Size,Double,Point,Double,Action<BitmapSource>). In Silverlight any background GridPattern is not rendered.

This just returns MakeBitmap(bmpsize, dpi, viewpos, scale, null)

Requirements

See Also

© 2012 All Rights Reserved.