DicomObjects.NET.V8
DicomObjects Namespace / DicomGlobal Class / LockGdiOperations Property



In This Topic
    LockGdiOperations Property
    In This Topic
    Controls whether to use an explicit lock to prevent recurrent GDI operations from happening
    Syntax
    'Declaration
     
    Public Shared Property LockGdiOperations As Boolean
    'Usage
     
    Dim value As Boolean
     
    DicomGlobal.LockGdiOperations = value
     
    value = DicomGlobal.LockGdiOperations
    public static bool LockGdiOperations {get; set;}
    public:
    static property bool LockGdiOperations {
       bool get();
       void set (    bool value);
    }
    Remarks
    This is false by default, as t is believed that these problems have been eliminated, but is left as an option to prevent rare but difficult to reproduce errors when different threads happen to use the GDI sub-system at the same time - e.g. when rendering labels through use of DicomImage.PrinterImage
    Requirements

    Target Platforms: .NET CLR 3.5 or higher

    See Also