- stream
- The stream containing the ICC profile.
- pageNumber
- 1-based index of the page within the file that contains the ICC profile.
Visual Basic (Declaration) | |
---|---|
Overloads Public 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 ) |
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.
For an example, refer to ReadFromImage(String,Int32).
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.
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)