ImageGear v26.3 - Updated
ImageGear.Core Assembly / ImageGear.Processing Namespace / ImGearRasterProcessing Class / ConvertColorSpace Method / ConvertColorSpace(ImGearRasterPage,ImGearColorSpace,ImGearColorProfile,ImGearColorProfile,ImGearRenderingIntents) Method
Image to change color space.
New color space.
Initial color space profile.
The new color space profile.
Rendering intent.




In This Topic
    ConvertColorSpace(ImGearRasterPage,ImGearColorSpace,ImGearColorProfile,ImGearColorProfile,ImGearRenderingIntents) Method
    In This Topic
    Converts page to a new color space using the specified color profiles and rendering intent.
    Syntax
    'Declaration
     
    Public Overloads Shared Sub ConvertColorSpace( _
       ByVal page As ImGearRasterPage, _
       ByVal newColorSpace As ImGearColorSpace, _
       ByVal sourceProfile As ImGearColorProfile, _
       ByVal destinationProfile As ImGearColorProfile, _
       ByVal renderingIntent As ImGearRenderingIntents _
    ) 
    'Usage
     
    Dim page As ImGearRasterPage
    Dim newColorSpace As ImGearColorSpace
    Dim sourceProfile As ImGearColorProfile
    Dim destinationProfile As ImGearColorProfile
    Dim renderingIntent As ImGearRenderingIntents
     
    ImGearRasterProcessing.ConvertColorSpace(page, newColorSpace, sourceProfile, destinationProfile, renderingIntent)

    Parameters

    page
    Image to change color space.
    newColorSpace
    New color space.
    sourceProfile
    Initial color space profile.
    destinationProfile
    The new color space profile.
    renderingIntent
    Rendering intent.
    Remarks
    The image's pixel data is modified to conform to the new color space. This method does not concern itself with any of the settings of ImageGear.Core.ImGearColorProfileManager class. Instead, it allows immediate and explicit specification of color profiles to use for the conversion.
    Example
    See Also