public sealed class ImageAnnotationContext : IMessage<ImageAnnotationContext>, IEquatable<ImageAnnotationContext>, IDeepCloneable<ImageAnnotationContext>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Vision v1 API class ImageAnnotationContext.
If an image was produced from a file (e.g. a PDF), this message gives
information about the source of that image.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eImageAnnotationContext\u003c/code\u003e class provides information about the source of an image, especially if it was derived from a file like a PDF.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eImageAnnotationContext\u003c/code\u003e documentation is version 3.7.0, with several previous versions also available, from 3.6.0 down to 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eImageAnnotationContext\u003c/code\u003e class contains properties such as \u003ccode\u003ePageNumber\u003c/code\u003e (for PDF or TIFF files) and \u003ccode\u003eUri\u003c/code\u003e (the file's URI) to specify the image source.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Vision v1 API - Class ImageAnnotationContext (3.7.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.7.0 (latest)](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ImageAnnotationContext)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.6.0/Google.Cloud.Vision.V1.ImageAnnotationContext)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.5.0/Google.Cloud.Vision.V1.ImageAnnotationContext)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.4.0/Google.Cloud.Vision.V1.ImageAnnotationContext)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.3.0/Google.Cloud.Vision.V1.ImageAnnotationContext)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.2.0/Google.Cloud.Vision.V1.ImageAnnotationContext)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.1.0/Google.Cloud.Vision.V1.ImageAnnotationContext)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/3.0.0/Google.Cloud.Vision.V1.ImageAnnotationContext)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.5.0/Google.Cloud.Vision.V1.ImageAnnotationContext)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.4.0/Google.Cloud.Vision.V1.ImageAnnotationContext)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Vision.V1/2.3.0/Google.Cloud.Vision.V1.ImageAnnotationContext) \n\n public sealed class ImageAnnotationContext : IMessage\u003cImageAnnotationContext\u003e, IEquatable\u003cImageAnnotationContext\u003e, IDeepCloneable\u003cImageAnnotationContext\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Vision v1 API class ImageAnnotationContext.\n\nIf an image was produced from a file (e.g. a PDF), this message gives\ninformation about the source of that image. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ImageAnnotationContext \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ImageAnnotationContext](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ImageAnnotationContext), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ImageAnnotationContext](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ImageAnnotationContext), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ImageAnnotationContext](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1.ImageAnnotationContext), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Vision.V1](/dotnet/docs/reference/Google.Cloud.Vision.V1/latest/Google.Cloud.Vision.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Vision.V1.dll\n\nConstructors\n------------\n\n### ImageAnnotationContext()\n\n public ImageAnnotationContext()\n\n### ImageAnnotationContext(ImageAnnotationContext)\n\n public ImageAnnotationContext(ImageAnnotationContext other)\n\nProperties\n----------\n\n### PageNumber\n\n public int PageNumber { get; set; }\n\nIf the file was a PDF or TIFF, this field gives the page number within\nthe file used to produce the image.\n\n### Uri\n\n public string Uri { get; set; }\n\nThe URI of the file used to produce the image."]]