This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
shengyunyuxi  
#1 Posted : Tuesday, February 15, 2011 1:32:26 PM(UTC)
shengyunyuxi

Rank: Newbie

Groups: Guest
Joined: 2/15/2011(UTC)
Posts: 6

Hi All,

I encounter two strange problems when I do large long image processing
(Image size: 19.68inch*393.7 inch 100 dpi)

1. I can't rotate this long image, but I could rotate small image.
The error code is:
Error Stack

1 Aurigma.GraphicsMill The specified pixel format is not supported.

Call Stack

at Aurigma.GraphicsMill.Thread.FireStoppedEvent(Object object, ErrorEventArgs args)

at Aurigma.GraphicsMill.Thread.TimerEventProcessor()

at Aurigma.GraphicsMill.Thread.ChangeActivityStatus(ActivityStatus status)

at Aurigma.GraphicsMill.Thread.EntryPoint()

at Aurigma.GraphicsMill.Thread.Start()

at Aurigma.GraphicsMill.Transforms.BitmapTransform.ApplyTransform(Bitmap bitmap)

at Aurigma.GraphicsMill.TransformsProvider._Rotate(Single angle)

at Aurigma.GraphicsMill.TransformsProvider.Rotate(Single angle)


2. I can't draw a rectangle region cover this long image. The largest size I could draw is
Height: 265.55 inch. When I want to resize the rectangle region into a larger height, nothing happens, it's still 265.55 inch. But if I change the code manually, for example set the height into a large number, it could show up a much longer rectangle region.


These two problems are really strange, I have spent one day, but no progress.

Thank you,

Edited by moderator Tuesday, February 15, 2011 1:40:37 PM(UTC)  | Reason: Not specified

Dmitry.Obukhov  
#2 Posted : Wednesday, February 16, 2011 3:35:07 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Guest
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Wei,
  1. According to the error stack trace:
    Code:
     Aurigma.GraphicsMill	The specified pixel format is not supported.

    Could you please clarify what pixel format your image has? Other images which can be rotated?
  2. Quote:
    I can't draw a rectangle region cover this long image. The largest size I could draw is
    Height: 265.55 inch. When I want to resize the rectangle region into a larger height, nothing happens, it's still 265.55 inch. But if I change the code manually, for example set the height into a large number, it could show up a much longer rectangle region.
    Could you share the complete sample application with me so that I can test it on my machine? Also, it would be great if you send me images for testing.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
shengyunyuxi  
#3 Posted : Wednesday, February 16, 2011 5:47:48 AM(UTC)
shengyunyuxi

Rank: Newbie

Groups: Guest
Joined: 2/15/2011(UTC)
Posts: 6

1. Image1 could be rotated.
Image2 could not be rotated. (Image2 is too large to upload on your website, this is a part of image2, can't rotate.)


2. Only could select a rectangle region has 266.65 inch on image 2. The large long image can't upload, you could try to make a large long image based on image2.

Sorry, I can't share the application. The software is large, this is just a function inside to select region.

Thank you for your reply.

Edited by user Wednesday, February 16, 2011 5:55:35 AM(UTC)  | Reason: Not specified

shengyunyuxi attached the following image(s):
Image1.bmp
Image2.bmp
Dmitry.Obukhov  
#4 Posted : Thursday, February 17, 2011 2:56:46 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Guest
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Wei,
  1. Quote:
    Image1 could be rotated. Image2 could not be rotated.

    I tried to reproduce the problem with second image. However, it was added on multilayer viewer, and rotated okay. I got no errors.
  2. Quote:
    Only could select a rectangle region has 266.65 inch on image 2.

    Could you please provide me with code snippets of methods at least?
  3. Quote:
    I want to make it "Unable to draw rectangle object outside the image" like paint does. In paint, user could only draw in white part, can't draw in gray part.
    But now I could draw rectangle object outside the image as the image shows. How to make to unable to draw rectangle object outside the image.
Unfortunately, it is impossible.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
shengyunyuxi  
#5 Posted : Thursday, February 17, 2011 6:29:55 AM(UTC)
shengyunyuxi

Rank: Newbie

Groups: Guest
Joined: 2/15/2011(UTC)
Posts: 6

1. Image1's pixel format is format24bpprgb. Image2's pixel format is format8bppindexed.
I have checked your demo source code.
For format8bppindexed:
RotateArbitraryToolStripMenuItem.Enabled = false;
Rotate90ToolStripMenuItem.Enabled = true;
Rotate180ToolStripMenuItem.Enabled = true;
Rotate270ToolStripMenuItem.Enabled = true;

For format24bpprgb:
RotateArbitraryToolStripMenuItem.Enabled = true;
Rotate90ToolStripMenuItem.Enabled = true;
Rotate180ToolStripMenuItem.Enabled = true;
Rotate270ToolStripMenuItem.Enabled = true;

How could I rotate arbitrary on format8bppindexed?

For 2 and 3, I will check later and reply.
Dmitry.Obukhov  
#6 Posted : Friday, February 18, 2011 1:38:51 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Guest
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Wei,

Actually, Graphics Mill supports format8bppindexed pixel format. I tested your image you attached in the previous post. It was opened in our Main Demo sample. I rotated it using implemented functions. I got no problems with it.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
shengyunyuxi  
#7 Posted : Friday, February 18, 2011 6:10:32 AM(UTC)
shengyunyuxi

Rank: Newbie

Groups: Guest
Joined: 2/15/2011(UTC)
Posts: 6

But I tried you 5.5 version demo.
In Main demo, I can't rotate arbitrary angle.
Attached you could find the screenshot.

Thank you,
File Attachment(s):
New Bitmap Image (4).bmp (3,001kb) downloaded 4 time(s).
shengyunyuxi  
#8 Posted : Friday, February 18, 2011 1:31:16 PM(UTC)
shengyunyuxi

Rank: Newbie

Groups: Guest
Joined: 2/15/2011(UTC)
Posts: 6

The problem is the image is format8bppindexed with alpha channel.
I look into you main demo source code, only after I convert the image into 24bpprgb, I could rotate any angle.

But now the problem is if I convert the image into 24bpprgb, in next step for image analysis, the result is different with format8bppindexed.

I want to have both these two:
1. rotate any angle
2. convert format doesn't affect next step image analysis' result.

How could I achieve this?

Thank you,
Dmitry.Obukhov  
#9 Posted : Tuesday, February 22, 2011 3:48:36 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups: Guest
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello,

I discussed on it with our GM developer. Unfortunately, images withformat8bppindexed format cannot be rotated in angle not divisible by 90 degrees. It causes that analysis effect will poor quality after rotation in any angle.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Guest
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.