Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
Cannot get ImageVObject to display as correct size
Rank: Member
Groups: Guest
Joined: 8/25/2007(UTC) Posts: 7
|
How do I get an image and the workspace to appear as the same size on the screen? Through code similar to the following I add the bitmap to my MultipleLayerViewer (called previewWindow). Code: previewWindow.ZoomMode = ZoomMode.None;
previewWindow.Zoom = 1;
previewWindow.Unit = Unit.Inch;
previewWindow.WorkspaceWidth = 6.25f;
previewWindow.WorkspaceHeight = 5.25f;
string Filename = "C:\\tmp\\cover3x5.jpg";
Aurigma.GraphicsMill.Bitmap bitmap =
new Aurigma.GraphicsMill.Bitmap(Filename);
bitmap.Unit = Unit.Inch;
ImageVObject newImageVObject =
new ImageVObject(bitmap, true, 0f, 0f);
previewWindow.CurrentLayer.VObjects.Add(newImageVObject);
When I debug the code, I can see that the Workspace size matches the Logical size of the bitmap (6.25"w X 5.25"h). However, on the screen, my ImageVObject appears much larger than my Workspace. I have tried the following variations - Set the ScaleToActualSize parameter to false in the ImageVObject constructor
- Resized the bitmap before creating the ImageVObject
- Set the vertical and horizontal resolution of the bitmap to 96dpi
Nothing I've tried has worked. Any ideas are greatly appreciated. I have been fighting this issue for several days and I'm falling behind schedule. Note #1: The bitmap resolution does not seem to matter. I have tried bitmaps of 96dpi and 300dpi with the same bad results. My screen resolution is 96dpi. Note #2: We need to use a MultiLayerViewer because we will be layering multiple images together. Edited by user Monday, December 17, 2007 12:21:58 PM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Hello, We confirm the problem. If this problem is critical for you, you can submit case and we will provide you with update. Edited by user Thursday, May 22, 2008 3:16:27 PM(UTC)
| Reason: Not specified |
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 8/3/2003(UTC) Posts: 1,070
Thanks: 1 times Was thanked: 12 time(s) in 12 post(s)
|
Hello, The problem is resolved in Graphics Mill 4.1 for .NET. Please download it from our site. |
|
|
|
|
Aurigma Forums
»
Graphics Mill
»
Discussions – Graphics Mill
»
Cannot get ImageVObject to display as correct size
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.