Prod.: Engine, ver.: 6017, ID: 60001159, Wish : RenderToGraphics of vdLayout and RenderToDC of VdrawI5.vdDocument Improvements

Wish : RenderToGraphics of vdLayout and RenderToDC of VdrawI5.vdDocument Improvements

Article60001159
TypeWish
ProductEngine
Version6017
Date Added5/28/2010
FixedYes [5/28/2010]
Submitted byDieter Hammer
Keywords

Subject

RenderToGraphics of vdLayout and RenderToDC of VdrawI5.vdDocument Improvements

Summary

RenderToGraphics of vdLayout and RenderToDC of VdrawI5.vdDocument Improvements

Solution


In version 6018
New method RenderToGraphics was added in vdLayout

vdLayout.RenderToGraphics(System.Drawing.Graphics gr, Box RenderingArea, int graphicsXorigin, int graphicsYorigin, int destWidthPix, int destHeightPix, int SplitSize)

gr                  : The graphics device where the rendering done.
RenderingArea  : A rectangle are in View Coordinate represending the entities area which will be drawn.If this parameter is null then the display area is rendered.
graphicsXorigin : The x coordinate of the upper left origin of the graphics device in pixels.
graphicsYorigin : The y coordinate of the upper left origin of the graphics device in pixels.
destWidthPix    : Width of rendering device in pixels
destHeightPix   : Height of rendering device in pixels

SplitSize: The maximun size in pixels of width and height can be used to render a sub rectangle on the selected graphics device.
              Useful to be used when destWidthPix and destHeightPix are too large.
              This will split the rendering in number of rows and columns recrtangles depend of the destWidthPix , destHeightPix and SplitSize.
              For example if destWidthPix = 8000 and destHeight = 8000 and SplitSize = 1000 it will split the render in 8x8 rendering images
              Set it to 0 for rendering at once in one single rectangle.
Remarks: VectorDraw automatically centers and fits the rendering area to the specified image size.




Also a new method RenderToDC was added in vdrawI5.vdDocument wrapper object used with vdraw.ocx

vdrawI5.vdDocument.RenderToDCEx(int destDC, object LowerLeftPoint, object UperRirghtPoint, int XOrigin, int YOrigin, int destWidthPix, int destHeightPix, int SplitSize)

destDC : The graphics device where the rendering done.

LowerLeftPoint, UperRirghtPoint are points in drawing area which are about the part of the area we want to render to another device. The points passed in this method must be in Display Coord. System

Xorigin : The x coordinate of the upper left origin of the graphics device in pixels.
Yorigin : The y coordinate of the upper left origin of the graphics device in pixels.
destWidthPix    : Width of rendering device in pixels
destHeightPix   : Height of rendering device in pixels

SplitSize: The maximun size in pixels of width and height can be used to render a sub rectangle on the selected graphics device.
              Useful to be used when destWidthPix and destHeightPix are too large.
              This will split the rendering in number of rows and columns recrtangles depend of the destWidthPix , destHeightPix and SplitSize.
              For example if destWidthPix = 8000 and destHeight = 8000 and SplitSize = 1000 it will split the render in 8x8 rendering images
              Set it to 0 for rendering at once in one single rectangle.
Remarks: VectorDraw automatically centers and fits the rendering area to the specified image size.