Class ObsScreenshot
- Namespace
- OBSStudioClient.Model
- Assembly
- OBSClient.dll
A screenshot that OBS Studio made of a scene or an input.
public sealed class ObsScreenshot
- Inheritance
-
ObsScreenshot
- Inherited Members
Properties
- Data
Gets the content of the image file: what a file of that format holds. Do not change it: it is the memory that the screenshot holds.
- Format
Gets the image format that was asked for, as OBS Studio names it:
png,jpgand so on (see SupportedImageFormats).
- MediaType
Gets the media type of the image, for example
image/png: the media type of the format (image/jpegforjpg,image/tifffortif), which is not always the name that OBS Studio gives the format.
Methods
- SaveAsync(string, CancellationToken)
Writes the screenshot to a file.
- ToDataUri()
Returns the screenshot as a data URI (
data:image/png;base64,...), which a web page can show as an image.
- ToString()
Returns a string that represents the current object.