DicomObjects.NET8 Documentation
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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also