Table of Contents

Class ScribbleImage

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

An image mask representing a brush scribble.

public record ScribbleImage : IEquatable<ScribbleImage>
Inheritance
ScribbleImage
Implements
Inherited Members

Properties

Image

The brush scribble to guide segmentation. Valid for the interactive mode.

[JsonPropertyName("image")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public Image? Image { get; set; }

Property Value

Image

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ScribbleImage object.

public static ScribbleImage? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ScribbleImage

The deserialized ScribbleImage object, or null if deserialization fails.