| Mat Constructor (String, ImreadModes) | 
        
         
            Loads an image from a file. (cv::imread)
            
 
    Namespace: 
   OpenCvSharp
    Assembly:
   OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
 Syntax
Syntaxpublic Mat(
	string fileName,
	ImreadModes flags = ImreadModes.Color
)
Public Sub New ( 
	fileName As String,
	Optional flags As ImreadModes = ImreadModes.Color
)
public:
Mat(
	String^ fileName, 
	ImreadModes flags = ImreadModes::Color
)
new : 
        fileName : string * 
        ?flags : ImreadModes 
(* Defaults:
        let _flags = defaultArg flags ImreadModes.Color
*)
-> MatOpenCvSharp.Mat = function(fileName, flags);
Parameters
- fileName
- Type: SystemString
 Name of file to be loaded.
- flags (Optional)
- Type: OpenCvSharpImreadModes
 Specifies color type of the loaded image
 See Also
See Also