PngViewOptions
PngViewOptions(CreatePageStream)
Initializes an instance of the PngViewOptions
class.
public PngViewOptions(CreatePageStream createPageStream)
Parameter | Type | Description |
---|---|---|
createPageStream | CreatePageStream | The method that instantiates a stream used to write output page data. |
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown when createPageStream is null. |
Remarks
For the code example, see the documentation.
See Also
- delegate CreatePageStream
- class PngViewOptions
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer
PngViewOptions(CreatePageStream, ReleasePageStream)
Initializes an instance of the PngViewOptions
class.
public PngViewOptions(CreatePageStream createPageStream, ReleasePageStream releasePageStream)
Parameter | Type | Description |
---|---|---|
createPageStream | CreatePageStream | The method that instantiates a stream used to write output page data. |
releasePageStream | ReleasePageStream | The method that releases a stream created by method assigned to delegate that passed to createPageStream parameter. |
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown when createPageStream is null. |
ArgumentNullException | Thrown when releasePageStream is null. |
Remarks
For the code example, see the documentation.
See Also
- delegate CreatePageStream
- delegate ReleasePageStream
- class PngViewOptions
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer
PngViewOptions(IPageStreamFactory)
Initializes an instance of the PngViewOptions
class.
public PngViewOptions(IPageStreamFactory pageStreamFactory)
Parameter | Type | Description |
---|---|---|
pageStreamFactory | IPageStreamFactory | The factory which implements methods for creating and releasing output page stream. |
Exceptions
exception | condition |
---|---|
ArgumentNullException | Thrown when pageStreamFactory is null. |
Remarks
For the code example, see the documentation.
See Also
- interface IPageStreamFactory
- class PngViewOptions
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer
PngViewOptions()
Initializes an instance of the PngViewOptions
class.
public PngViewOptions()
Remarks
This constructor initializes an instance of the PngViewOptions
with “p_{0}.png” as file path format for the output files. The output files are placed into current working directory of the application.
For the code example, see the documentation.
See Also
- class PngViewOptions
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer
PngViewOptions(string)
Initializes an instance of the PngViewOptions
class.
public PngViewOptions(string filePathFormat)
Parameter | Type | Description |
---|---|---|
filePathFormat | String | The file path format e.g. ‘page_{0}.png’. |
Exceptions
exception | condition |
---|---|
ArgumentException | Thrown when filePathFormat is null or empty. |
Remarks
For the code example, see the documentation.
See Also
- class PngViewOptions
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer