#181 DwgPreview shows funny

v_4.0_Beta
closed-fixed
Owen Wengerd
5
2014-02-28
2007-03-19
BazzaCAD
No

Not sure if this is a bug or just a general question.
Why does the dwgPreview sometimes show the thumbnails correctly & some times they don't? Does it have to do with the aspect ration of the dwgPreview? See attached shot.

Discussion

1 2 > >> (Page 1 of 2)
  • BazzaCAD
    BazzaCAD
    2007-03-19

    screen shot

     
    Attachments
  • Owen Wengerd
    Owen Wengerd
    2007-03-20

    • assigned_to: nobody --> owenwengerd
     
  • BazzaCAD
    BazzaCAD
    2007-03-20

    Screen Shot 2

     
    Attachments
  • BazzaCAD
    BazzaCAD
    2007-03-20

    Logged In: YES
    user_id=1582367
    Originator: YES

    It looks like it is the aspect ration. I changed the width from 150 to 155 & left the height the same (120) and it shows up fine now. See attached pic. (note the 150 width is missing lines the 155 is ok). Maybe we should have a design-time property to lock the aspect ration then when you resize the control it will resize both the height & width correctly..
    File Added: dwgPreview2.png

     
  • BazzaCAD
    BazzaCAD
    2007-03-21

    Logged In: YES
    user_id=1582367
    Originator: YES

    I'm still not sure about this one. After re-sizing all my dwgPreviews to 155x120, some look good & some still don't look good. Maybe there's a min. size requirement....

     
  • Owen Wengerd
    Owen Wengerd
    2007-03-23

    • status: open --> open-wont-fix
     
  • Owen Wengerd
    Owen Wengerd
    2007-03-23

    Logged In: YES
    user_id=1693773
    Originator: NO

    I'm not sure what to make of this. The ODCL code calls an AutoCAD function (acdbDisplayPreviewFromDwg) to do the drawing. The docs for that function only mention this about the image size:

    -- begin --
    The image size varies up to a maximum size no larger than 256 x 188 pixels. If the pPreviewWnd window is larger than the image, then the image will be stretched to fit. But, if the window is smaller than the image, the image will not be adjusted and will spill out beyond the window's borders.
    -- end --

    I'll leave this one open, but short of drawing the preview manually, I don't see much I can do about this. If you discover any new information about the conditions under which the problem occurs, please report it here.

     
  • BazzaCAD
    BazzaCAD
    2009-06-05

    sample

     
    Attachments
  • BazzaCAD
    BazzaCAD
    2009-06-05

    This is an old one, but a new discovery has been made.
    White backgrounds look good & all other colors still don't look good.
    I've attached a new sample showing this. Load the test.dwg with it...

     
  • Owen Wengerd
    Owen Wengerd
    2014-02-28

    • status: open-wont-fix --> closed-fixed
     
1 2 > >> (Page 1 of 2)