PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.images Package / PDFRawImage Class / setWidth Method
The image width in pixels.
Collapse All Expand All
In This Topic

setWidth Method
In This Topic
Sets the image width.
Syntax

    public void setWidth(
       int width
    )

#### Parameters

width
  The image width in pixels.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | When width is less than or equal to 0

See Also

#### Reference

PDFRawImage Class
PDFRawImage Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.