Tag: scaling

在iTextSharp中缩放图像

我在缩放我插入的图像时遇到了一些麻烦。 我必须做错事,因为无论我做什么,它都不会改变。 这是我目前的代码,但它似乎不起作用。 图像插入正常,无论我尝试什么值,它都不会缩放。 我做错了什么明显的事情? 人们做错了什么常见的事情? 我在C#工作,但我认为所有语言的语法都相同(或多或少)。 Image imgSpine = Image.GetInstance(strSpine); imgSpine.ScaleAbsolute(2, 55); SpineCell.Image = imgSpine; SpineCell.Image.Border = Rectangle.NO_BORDER; SpineCell.VerticalAlignment = Element.ALIGN_TOP; SpineCell.HorizontalAlignment = Element.ALIGN_LEFT; pTable.AddCell(SpineCell);