Skip to content

Commit

Permalink
Updated FindShapeSizes example
Browse files Browse the repository at this point in the history
  • Loading branch information
falleretic committed Jan 15, 2020
1 parent c1b5a25 commit c398d58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static void Run()
public static void InsertTextInputFormField(string dataDir)
{
// ExStart:DocumentBuilderInsertTextInputFormField
Words.Document doc = new Words.Document();
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);

builder.InsertTextInput("TextInput", TextFormFieldType.Regular, "", "Hello", 0);
Expand Down
4 changes: 0 additions & 4 deletions Examples/CSharp/Rendering-Printing/RenderShape.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,6 @@ public static void RenderParagraphToImage(string dataDir, Document doc)
public static void FindShapeSizes(Shape shape)
{
// ExStart:FindShapeSizes
SizeF shapeSizeInDocument = shape.GetShapeRenderer().SizeInPoints;
float width = shapeSizeInDocument.Width; // The width of the shape.
float height = shapeSizeInDocument.Height; // The height of the shape.

Size shapeRenderedSize = shape.GetShapeRenderer().GetSizeInPixels(1.0f, 96.0f);

using (Bitmap image = new Bitmap(shapeRenderedSize.Width, shapeRenderedSize.Height))
Expand Down

0 comments on commit c398d58

Please sign in to comment.