private void ResizeImage(PageContext pageContext, int width, int height) { double paddings = this.GetPaddings(StyleAttributeNames.PaddingLeft, StyleAttributeNames.PaddingRight); double paddings2 = this.GetPaddings(StyleAttributeNames.PaddingTop, StyleAttributeNames.PaddingBottom); double num = pageContext.ConvertToMillimeters(height, pageContext.DpiY); base.m_itemRenderSizes.AdjustHeightTo(num + paddings2); double num2 = pageContext.ConvertToMillimeters(width, pageContext.DpiX); base.m_itemRenderSizes.AdjustWidthTo(num2 + paddings); }