Code: Select all
" widthscale="+obj.Width/(obj.ActualSize.Width-obj.GraphicCrop.Left-obj.GraphicCrop.Right)
" heightscale="+obj.Height/(obj.ActualSize.Height-obj.GraphicCrop.Top-obj.GraphicCrop.Bottom)
Code: Select all
" widthscale="+obj.Width/(obj.ActualSize.Width-obj.GraphicCrop.Left-obj.GraphicCrop.Right)
" heightscale="+obj.Height/(obj.ActualSize.Height-obj.GraphicCrop.Top-obj.GraphicCrop.Bottom)
Seems to be correct. I used almost the same in PicTool:Evgeniy wrote:I'm look API with MRI and not find Scale property of image and I came to the next decision:
This is right way?Code: Select all
" widthscale="+obj.Width/(obj.ActualSize.Width-obj.GraphicCrop.Left-obj.GraphicCrop.Right) " heightscale="+obj.Height/(obj.ActualSize.Height-obj.GraphicCrop.Top-obj.GraphicCrop.Bottom)
Thats easy to me. This code is part of my HTML exporter.Zizi64 wrote:Please upload your sample file with the ebedded picture and the macro code.