JpgViewOptions
Leave feedback
On this page
Initializes an instance of the JpgViewOptions class.
public JpgViewOptions(CreatePageStream createPageStream)
| Parameter | Type | Description |
|---|---|---|
| createPageStream | CreatePageStream | The method that instantiates a stream used to write output page data. |
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when createPageStream is null. |
For the code example, see the documentation.
- delegate CreatePageStream
- class JpgViewOptions
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer
Initializes an instance of the JpgViewOptions class.
public JpgViewOptions(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. |
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when createPageStream is null. |
| ArgumentNullException | Thrown when releasePageStream is null. |
For the code example, see the documentation.
- delegate CreatePageStream
- delegate ReleasePageStream
- class JpgViewOptions
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer
Initializes an instance of the JpgViewOptions class.
public JpgViewOptions(IPageStreamFactory pageStreamFactory)
| Parameter | Type | Description |
|---|---|---|
| pageStreamFactory | IPageStreamFactory | The factory which implements methods for creating and releasing output page stream. |
| exception | condition |
|---|---|
| ArgumentNullException | Thrown when pageStreamFactory is null. |
For the code example, see the documentation.
- interface IPageStreamFactory
- class JpgViewOptions
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer
Initializes an instance of the JpgViewOptions class.
public JpgViewOptions()
This constructor initializes an instance of the JpgViewOptions with “p_{0}.jpg” 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.
- class JpgViewOptions
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer
Initializes an instance of the JpgViewOptions class.
public JpgViewOptions(string filePathFormat)
| Parameter | Type | Description |
|---|---|---|
| filePathFormat | String | The file path format e.g. ‘page_{0}.jpg’. |
| exception | condition |
|---|---|
| ArgumentException | Thrown when filePathFormat is null or empty. |
For the code example, see the documentation.
- class JpgViewOptions
- namespace GroupDocs.Viewer.Options
- assembly GroupDocs.Viewer
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.