开发者

Rotating an OCX control in Delphi 7?

开发者 https://www.devze.com 2023-03-22 05:59 出处:网络
I\'m using the PaperPort OCX to view .MAX files in Delphi 7.The problem is, about half of the images have the wrong orientation, and the OCX has no bu开发者_StackOverflow中文版ilt in means of rotating

I'm using the PaperPort OCX to view .MAX files in Delphi 7. The problem is, about half of the images have the wrong orientation, and the OCX has no bu开发者_StackOverflow中文版ilt in means of rotating the image, only zooming in on it.

Is there any way to rotate the control entirely, or is there another control I can use to view .MAX files that allows image rotation?


I can only answer the first of your questions. There is no way to rotate the control itself. If the control doesn't allow rotating the image, you will have to find another control.


Don't know for sure, but maybe the control supports the IViewObject interface. If so, you can use it to paint it yourself using its Draw method. Of course you would have to know somehow whether to paint it rotated or not and it would be only for display, not for interaction. But maybe this is all you need.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号