Rendering System.Drawing.Image as a DicomLabel

Out of the many label types available in DicomObjects .NET, LabelType.Image can be used to directly reference a System.Drawing.Image object (jpg, png, bmp, etc) ,and to be rendered as a DicomLabel on the viewer.

Code snippet:

            DicomImage img = new DicomImage("img.dcm");
            DicomLabel l = new DicomLabel()
                LabelType = LabelType.Image,
                Image = Image.FromFile("sample.jpg"), 
                Left = 20,
                Top = 10,
                Width = 60,
                Height = 60