←Select platform

ReadFromImage(Stream,int) Method

Summary
Loads an embedded ICC profile from a stream.
Syntax
C#
C++
public void ReadFromImage( 
   Stream stream, 
   int pageNumber 
) 
vb[VB Syntax] 
  
Public Overloads Sub ReadFromImage( _ 
   ByVal _stream_ As Stream, _ 
   ByVal _pageNumber_ As Integer _ 
) 
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.

Remarks
  • ICC profiles can be loaded from EPS, JPEG, PNG, PICT, PSD or TIFF 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.
Example

For an example, refer to ReadFromImage(String,Int32).

Requirements

Target Platforms

Help Version 22.0.2022.4.4
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.ColorConversion Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.