Rank: Member
Groups: Guest
Joined: 4/6/2010(UTC) Posts: 24
|
hi I not understend resize layer to work area :( If i have Multilayerviewer1.workspaceWith = ("30") 'cm Multilayerviewer1.workspaceheight = ("30") 'cm
I not understend for resize layer0 this dimension :(
Thank you for reply and sorry for my english
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
Hi,
In MultilayerViewer workspaceWith and workspaceHeight are measured in Points. 1 point = 1/72 inch 1 inch = 25.4 mm
=> 30 cm = 850 points
|
|
|
|
|
Rank: Member
Groups: Guest
Joined: 4/6/2010(UTC) Posts: 24
|
hi if i have Multilayerviewer1.workspaceWith = ("30") 'cm Multilayerviewer1.workspaceheight = ("30") 'cm
open file example
Dim bmp As New Aurigma.GraphicsMill.Bitmap("c:\TEST.png") Dim imgVObj As New Aurigma.GraphicsMill.WinControls.ImageVObject(bmp, False, 0, 0)
imgVObj.Transform.Scale(MultiLayerViewer1.WorkspaceWidth, MultiLayerViewer1.WorkspaceHeight)
MultiLayerViewer1.CurrentLayer.VObjects.Add(imgVObj)
but don't work for adapter image test to dimension MultiLayerViewer1
Thanyou Maurizio
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/9/2008(UTC) Posts: 554
Was thanked: 1 time(s) in 1 post(s)
|
Hi, Try to use this code: Code:Dim bmp As New Aurigma.GraphicsMill.Bitmap("c:\TEST.png")
Dim imgVObj As New Aurigma.GraphicsMill.WinControls.ImageVObject(bmp, False, 0, 0)
imgVObj.Transform.Scale(MultiLayerViewer1.WorkspaceWidth * bmp.HorizontalResolution / (72 * bmp.Width), _
MultiLayerViewer1.WorkspaceHeight * bmp.VerticalResolution / (72 * bmp.Height))
MultiLayerViewer1.CurrentLayer.VObjects.Add(imgVObj)
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.