←Select platform

ReadFromImage(Stream,int) Method

Summary
Loads an embedded ICC profile from a stream.
Syntax
C#
VB
C++
public void ReadFromImage( 
   Stream stream, 
   int pageNumber 
) 
  
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 JPEG, TIFF, PSD 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.
Example

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

Requirements

Target Platforms

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

Leadtools.ColorConversion Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.