Image Transistions

SEVI

Well-known member
Joined
Jun 28, 2003
Messages
48
Location
Australia
Hi

Im using C# and GDI to write an app that involves working with images and I need to be able to have one image switch to another with various fades and transistion in between. Furthing that I need to have multiple image transistion perform at once. Ive opted to work with LEADTOOLS Raster Imaging kit, but am having troubles getting their product to do what Id like it to. Id appreciate any feedback that anyone has on the matter of working with quality transistions and if there is an easier/better way to go.

Thanks
 
One of the classes I made for Fading:
C#:
public static ImageAttributes TrasparentImage(int percent)
			{
				if(percent <= 100 && percent >= 0)
				{
					float matrixEl= PercentToDec(percent);
					matrixEl= 1*matrixEl;
					ImageAttributes IA = new ImageAttributes();

					ColorMatrix wmColorMatrix = new ColorMatrix();
					wmColorMatrix.Matrix33= matrixEl;
					IA.SetColorMatrix(wmColorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap);
					return IA;
				}
				else return null;
			}

public static float PercentToDec(int percent)
			{
				string per= percent+"";

				if(per.Length==2)
					return Convert.ToSingle("."+per);
				if(per.Length==1)
					return Convert.ToSingle(".0"+per);
				else return Convert.ToSingle(per[0]+".");
			}
 
Back
Top