Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
maurib80@gmail.com  
#1 Posted : Sunday, May 9, 2010 10:30:02 PM(UTC)
maurib80@gmail.com

Rank: Member

Groups: Member
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
Tamila  
#2 Posted : Monday, May 10, 2010 6:07:05 PM(UTC)
Tamila

Rank: Advanced Member

Groups:
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
Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
maurib80@gmail.com  
#3 Posted : Thursday, May 13, 2010 11:38:10 PM(UTC)
maurib80@gmail.com

Rank: Member

Groups: Member
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
Tamila  
#4 Posted : Sunday, May 16, 2010 12:01:02 PM(UTC)
Tamila

Rank: Advanced Member

Groups:
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)

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
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.