ImageGear22.Processing.Advanced Assembly > ImageGear.Processing Namespace > ImGearEffects Class : Picturize Method |
'Declaration Public Shared Function Picturize( _ ByVal matchingMatrix As ImGearPicturizeMatchingMatrix, _ ByVal distributionSettings As ImGearPicturizeDistributionSettings, _ ByVal mixingSettings As ImGearPicturizeMixingSettings _ ) As ImGearRasterPage
'Usage Dim matchingMatrix As ImGearPicturizeMatchingMatrix Dim distributionSettings As ImGearPicturizeDistributionSettings Dim mixingSettings As ImGearPicturizeMixingSettings Dim value As ImGearRasterPage value = ImGearEffects.Picturize(matchingMatrix, distributionSettings, mixingSettings)
public static ImGearRasterPage Picturize( ImGearPicturizeMatchingMatrix matchingMatrix, ImGearPicturizeDistributionSettings distributionSettings, ImGearPicturizeMixingSettings mixingSettings )
This method uses a significant amount of calculations, so it has been split into three stages:
Loading and preprocessing cell images, scaling them to their destination size in the picturized image. This stage is done by creation of an ImGearPicturizePreprocessedCollection class object.
Matching cell images to fragments of the main image. This stage is done by creation of a ImGearPicturizeMatchingMatrix class object, which takes ImGearPicturizePreprocessedCollection class on input.Distributing the cell images over the source image, and adjusting their colors to match the main image better. This is done by calling the Picturize method.
The result of the Picturize method depends greatly on how similar the images in the cell image collection are relative to the source image. Also, for best result, the number of images in the cell image collection should be greater than the number of cells in the picturized image.