LEADTOOLS Color Conversion (Leadtools.ColorConversion assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
WriteToImage(Stream,Int32) Method
See Also 
Leadtools.ColorConversion Namespace > IccProfileExtended Class > WriteToImage Method : WriteToImage(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.
stream
The stream containing the ICC profile.
pageNumber
1-based index of the page within the file that contains the ICC profile.
Embedds an ICC profile to a stream.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub WriteToImage( _
   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.WriteToImage(stream, pageNumber)
C# 
public void WriteToImage( 
   Stream stream,
   int pageNumber
)
C++/CLI 
public:
void WriteToImage( 
   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, refer to WriteToImage(String,Int32).

Remarks

ICC profiles can be loaded from JPEG, TIFF or GIF files. For multipage files, and you can save the profile to a particular page using the pageNumber parameter. If the ICC was version 4.0 or 4.2, this method generates the profile id, and updates the data array.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also