如何在MS Word中完成图像裁剪? [英] How Image cropping was done in MS Word?

查看:98
本文介绍了如何在MS Word中完成图像裁剪?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我必须知道MS Word在裁剪和重新调整图像时如何计算图像的宽度和高度。 

I Have to know how the MS Word was calculate the image width and height when cropping and ReSizing the image. 

我需要知道如何计算PICTURE POSITION选项卡中的宽度和高度。当我增加和减少图像尺寸时它会动态变化。 

I  need to know how width and height present in PICTURE POSITION tab was calculated. It was dynamically change when i Increase and Decrease the image size. 

如何找到这些宽度和高度值?

How can find these width and height values?

问候,

Vijay R

推荐答案

Vijay_RM

>> 如何找到这些宽度和高度
值?

使用下面的代码可以得到图片的高度和宽度。

Using following code you can get height and width of picture.

Sub pic()
Dim dutPic As Word.InlineShape
Dim oH As Double, oW As Double 
Set dutPic = Selection.InlineShapes.AddPicture(FileName:="C:\Users\v-padee\Desktop\img1.jpg", _
  LinkToFile:=False, SaveWithDocument:=True)
oW = dutPic.Width
oH = dutPic.Height
oW = PointsToInches(oW)
oH = PointsToInches(oH)
MsgBox "Height" & oH & "width" & oW
End Sub

问候

Deepak


这篇关于如何在MS Word中完成图像裁剪?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆