locked
Add information to an image RRS feed

  • Question

  • User-829096311 posted

    Hi

    I have an api site that returns image as shown in the following code
    The question is how can I add a some info to the image like  version number or a short text for reading it in client side. 

            Dim Image As Bitmap = New Bitmap(600, 400)
            Dim g As Graphics = Graphics.FromImage(Image)
            g.DrawString(imgText, font, New SolidBrush(Color.Black), left, top)
            g.Flush()
            Response.ContentType = "image/jpg"
            Image.Save(Response.OutputStream, ImageFormat.Jpeg)
            Response.End()

    Thank you in advance

    Tuesday, July 30, 2019 4:03 PM

Answers