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.
Screen Shot 2
Logged In: 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
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....
Logged In: YES
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.
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...