Click or drag to resize

DocxImagingGetPicture(Image, Int32, Int32, DocumentModel) Method

Ritorna un oggetto "GemBox.Document.Picture" in base all'oggetto Image specificato utilizzando una larghezza e/o altezza custom. Se uno dei due valori di dimensione è minore di 0 viene calcolato a partire dall'altro mantenendo le proporzioni. Se, invece, entrambi i valori sono minori di 0 mantiene le dimensioni originali.

Namespace: QsGemBox.Docx
Assembly: QsGemBox (in QsGemBox.dll) Version: 27.1.0
Syntax
public static Picture GetPicture(
	Image img,
	int width,
	int height,
	DocumentModel doc
)

Parameters

img  Image

[Missing <param name="img"/> documentation for "M:QsGemBox.Docx.DocxImaging.GetPicture(System.Drawing.Image,System.Int32,System.Int32,GemBox.Document.DocumentModel)"]

width  Int32

[Missing <param name="width"/> documentation for "M:QsGemBox.Docx.DocxImaging.GetPicture(System.Drawing.Image,System.Int32,System.Int32,GemBox.Document.DocumentModel)"]

height  Int32

[Missing <param name="height"/> documentation for "M:QsGemBox.Docx.DocxImaging.GetPicture(System.Drawing.Image,System.Int32,System.Int32,GemBox.Document.DocumentModel)"]

doc  DocumentModel

[Missing <param name="doc"/> documentation for "M:QsGemBox.Docx.DocxImaging.GetPicture(System.Drawing.Image,System.Int32,System.Int32,GemBox.Document.DocumentModel)"]

Return Value

Picture

[Missing <returns> documentation for "M:QsGemBox.Docx.DocxImaging.GetPicture(System.Drawing.Image,System.Int32,System.Int32,GemBox.Document.DocumentModel)"]

See Also