Leadtools.ColorConversion Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.5.7
ReadFromImage(Stream,Int32) Method
See Also 
Leadtools.ColorConversion Namespace > IccProfileExtended Class > ReadFromImage Method : ReadFromImage(Stream,Int32) Method




stream
The stream containing the ICC profile.
pageNumber
1-based index of the page within the file that contains the ICC profile.
Loads an embedded ICC profile from a stream.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub ReadFromImage( _
   ByVal stream As Stream, _
   ByVal pageNumber As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As IccProfileExtended
Dim stream As Stream
Dim pageNumber As Integer
 
instance.ReadFromImage(stream, pageNumber)
C# 
public void ReadFromImage( 
   Stream stream,
   int pageNumber
)
Managed Extensions for C++ 
public: void ReadFromImage( 
   Stream* stream,
   int pageNumber
) 
C++/CLI 
public:
void ReadFromImage( 
   Stream^ stream,
   int pageNumber
) 

Parameters

stream
The stream containing the ICC profile.
pageNumber
1-based index of the page within the file that contains the ICC profile.

Example

For an example, refere to ReadFromImage.

Remarks

ICC profiles can be loaded from JPEG, TIFF or EPS files. For multipage files, you can save the profile to a particular page using the pageNumber parameter. If the ICC profile loaded was version 4.0 or 4.2, its data will be extracted into the class members. Otherwise, the ICC profile is kept as one piece in the Data array.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also