Article | 60001159 |
Type | Wish |
Product | Engine |
Version | 6017 |
Date Added | 5/28/2010 |
Fixed | Yes [5/28/2010] |
Submitted by | Dieter Hammer |
Keywords |
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.