ImageGear for .NET
Blend(ImGearRasterPage,Int32,Int32,ImGearRasterPage,Double,ImGearChannelRange) Method




Page to process.
Left margin of blended image.
Top margin of blended image.
Image to blend with page.
A value from 0 to 100 defining the % weight of the pageToBlendWith image to be blended.
Channel range to process.
Blends two images based on the weight (in percents) of the secondary image.
Syntax
'Declaration
 
Public Overloads Shared Sub Blend( _
   ByVal page As ImGearRasterPage, _
   ByVal left As Integer, _
   ByVal top As Integer, _
   ByVal pageToBlendWith As ImGearRasterPage, _
   ByVal weight As Double, _
   ByVal channelsRange As ImGearChannelRange _
) 
'Usage
 
Dim page As ImGearRasterPage
Dim left As Integer
Dim top As Integer
Dim pageToBlendWith As ImGearRasterPage
Dim weight As Double
Dim channelsRange As ImGearChannelRange
 
ImGearRasterProcessing.Blend(page, left, top, pageToBlendWith, weight, channelsRange)
public static void Blend( 
   ImGearRasterPage page,
   int left,
   int top,
   ImGearRasterPage pageToBlendWith,
   double weight,
   ImGearChannelRange channelsRange
)
public: static void Blend( 
   ImGearRasterPage* page,
   int left,
   int top,
   ImGearRasterPage* pageToBlendWith,
   double weight,
   ImGearChannelRange channelsRange
) 
public:
static void Blend( 
   ImGearRasterPage^ page,
   int left,
   int top,
   ImGearRasterPage^ pageToBlendWith,
   double weight,
   ImGearChannelRange channelsRange
) 

Parameters

page
Page to process.
left
Left margin of blended image.
top
Top margin of blended image.
pageToBlendWith
Image to blend with page.
weight
A value from 0 to 100 defining the % weight of the pageToBlendWith image to be blended.
channelsRange
Channel range to process.
Remarks

This method blends the specified channels of page with corresponding channels of pageToBlendWith, using the following formula:

pagePixel = (pagePixel * (100.0 - weight) + pageToBlendPixel * weight) / 100.0

The method validates input pages for further processing according to following logics:

The method processes the input pages according to following logics:

See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List
BlendWithAlpha Method
ImGearRasterPage Class
ImGearChannelRange Structure

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback