public wAmbientLight(double Light_Intensity, wColor Light_Color) { Intensity = Light_Intensity; LightColor = new AdjustColor(Light_Color).SetLuminance(Intensity / 100.00); SetWPFLight(); }
public wLightLinear(double Light_Intensity, wLine Light_Line, wColor Light_Color) { Line = Light_Line; Intensity = Light_Intensity; LightColor = new AdjustColor(Light_Color).SetLuminance(Intensity / 100.00); }
public wPointLight(wPoint Light_Origin, wColor Light_Color) { Origin = Light_Origin; LightColor = Light_Color; SetWPFLight(); }
public wDirectionalLight(wVector Light_Direction, wColor Light_Color) { Direction = Light_Direction; LightColor = Light_Color; SetWPFLight(); }
public wLightSpot(wPoint Light_Location, wPoint Light_Target, double Light_InnerAngle, double Light_OuterAngle, wColor Light_Color) { Location = Light_Location; Target = Light_Target; LightColor = Light_Color; SetWPFLight(); }
public wPointLight(double Light_Intensity, wPoint Light_Origin, wColor Light_Color) { Origin = Light_Origin; Intensity = Light_Intensity; LightColor = new AdjustColor(Light_Color).SetLuminance(Intensity / 100.00); SetWPFLight(); }
public mModifyColorTint(wColor FillColor, int Value) { Effect = new ColorTintFilter(); Effect.Color = new mImageColor(FillColor).ToDynamicColor(); Effect.Amount = Value; Effect.Enabled = true; filter = Effect; }
public wDirectionalLight(double Light_Intensity, wVector Light_Direction, wColor Light_Color) { Direction = Light_Direction; Intensity = Light_Intensity; LightColor = new AdjustColor(Light_Color).SetLuminance(Intensity / 100.00); SetWPFLight(); }
public wLightSpot(wPoint Light_Location, wPoint Light_Target, wColor Light_Color) { Location = Light_Location; Target = Light_Target; LightColor = Light_Color; SetWPFLight(); }
public mModifyColorKey(wColor KeyColor, byte Tolerance) { Effect = new ColorKeyFilter(); Effect.Color = new mImageColor(KeyColor).ToDynamicColor(); Effect.ColorTolerance = Tolerance; Effect.Enabled = true; filter = Effect; }
public hFillColor(wColor WindColor) { if (WindColor.A == 0) { Value = "fill=\"none\""; } else { Value = "fill=\"rgb(" + WindColor.R + "," + WindColor.G + "," + WindColor.B + ")\""; } }
public hDropShadow(wDropShadow Effect) { FillColor = Effect.Color; Radius = Effect.Radius; OffsetX = Effect.OffsetX; OffsetY = Effect.OffsetY; SetValue(); }
public hStrokeColor(wColor WindColor) { if (WindColor.A == 0) { Value = "stroke=\"none\""; } else { Value = "stroke=\"rgb(" + WindColor.R + "," + WindColor.G + "," + WindColor.B + ")\""; } }
public void AddPoint(wPoint WindPoint, wColor WindColor, double Radius) { PointsVisual3D VisPoint = new PointsVisual3D(); VisPoint.Size = Radius; VisPoint.Color = WindColor.ToMediaColor(); VisPoint.Points.Add(WindPoint.ToPoint3D()); ViewPort.Children.Add(VisPoint); }
public wDropShadow(wColor ShadowColor, double Rotation, double Offset, double BlurRadius, double ShadowOpacity) { Active = true; Color = ShadowColor; Direction = Rotation; Distance = Offset; Radius = BlurRadius; Opacity = ShadowOpacity; CalculateOffset(); SetEffect(); }
public wGraphic(wColor BackColor, wColor ForeColor, wColor LineColor, double Stroke) { Background = BackColor; Foreground = ForeColor; StrokeColor = LineColor; StrokeWeight[0] = Stroke; StrokeWeight[1] = Stroke; StrokeWeight[2] = Stroke; StrokeWeight[3] = Stroke; WpfFill = new SolidColorBrush(Background.ToMediaColor()); }
public void SetMarker(wMarker.MarkerType MarkMode, int MarkSize, wColor MarkColor) { if (MarkMode == 0) { HasMarker = false; } else { HasMarker = true; } Marker.Mode = MarkMode; Marker.Radius = MarkSize; Marker.Graphics.Background = MarkColor; }
public mFilterEuclideanColor(wColor SourceColor, wColor TargetColor, short RadiusValue) { Source = SourceColor; Target = TargetColor; Radius = RadiusValue; BitmapType = mFilter.BitmapTypes.None; Effect = new EuclideanColorFiltering(new Accord.Imaging.RGB((byte)Source.R, (byte)Source.G, (byte)Source.B), Radius); Effect.FillColor = new Accord.Imaging.RGB((byte)Target.R, (byte)Target.G, (byte)Target.B); filter = Effect; }
public mModifyBorder(wColor BorderColor, int Radius) { Effect = new BorderFilter(); Fill fill = new Fill(); fill.BackgroundColor = new mImageColor(BorderColor).ToDynamicColor(); Effect.Fill = fill; Effect.Width = Radius; Effect.Enabled = true; filter = Effect; }
public hDropShadow(wDropShadow Effect, string SourceID, string ResultID) { FillColor = Effect.Color; Radius = Effect.Radius; OffsetX = Effect.OffsetX; OffsetY = Effect.OffsetY; InputID = SourceID; OutputID = ResultID; SetValue(); }
public mLayer(mLayer tempLayer) { LayerImage = tempLayer.LayerImage; Blend = tempLayer.Blend; StandardModifiers = tempLayer.StandardModifiers; Modifiers = tempLayer.Modifiers; MaskImage = (Bitmap)tempLayer.MaskImage.Clone(); MaskColor = tempLayer.MaskColor; Opacity = tempLayer.Opacity; MaskSample = tempLayer.MaskSample; Xform = tempLayer.Xform; }
public mQuickComposite(Bitmap B, mModifiers M, wColor BackgroundColor) { image = new ImageImageSource(); layer = new ImageLayer(); CompositionObject = new Composition(); image.Image = new mConvert(B).BitmapToWritableBitmap(); layer.Source = image; foreach (mModifier Modifier in M.Modifiers) { layer.Filters.Add(Modifier.filter); } Fill fill = new Fill(); fill.Type = FillType.Solid; fill.BackgroundColor = new mImageColor(BackgroundColor).ToDynamicColor(); CompositionObject.ColorDepth = 16; CompositionObject.ImageFormat = DynamicImageFormat.Png; CompositionObject.Fill = fill; RectangleShapeLayer rect = new RectangleShapeLayer(); rect.Fill = fill; rect.Width = B.Width; rect.Height = B.Height; //CompositionObject.Layers.Add(rect); CompositionObject.Layers.Add(layer); GeneratedImage genImage = CompositionObject.GenerateImage(); genImage.Properties.ColorDepth = 16; genImage.Properties.Format = DynamicImageFormat.Png; ModifiedBitmap = new mConvert(genImage.Image).SourceToBitmap(); }
public void SetMesh(wMesh Mesh) { ObjectGL.Begin(OpenGL.GL_TRIANGLES); foreach (wFace F in Mesh.Faces) { wVertex V = Mesh.Vertices[F.A]; wColor C = Mesh.Colors[F.A]; ObjectGL.Color((float)((double)C.R / 255.0), (float)((double)C.G / 255.0), (float)((double)C.B / 255.0)); ObjectGL.Vertex(V.X, V.Y, V.Z); V = Mesh.Vertices[F.B]; C = Mesh.Colors[F.B]; ObjectGL.Color((float)((double)C.R / 255.0), (float)((double)C.G / 255.0), (float)((double)C.B / 255.0)); ObjectGL.Vertex(V.X, V.Y, V.Z); V = Mesh.Vertices[F.C]; C = Mesh.Colors[F.C]; ObjectGL.Color((float)((double)C.R / 255.0), (float)((double)C.G / 255.0), (float)((double)C.B / 255.0)); ObjectGL.Vertex(V.X, V.Y, V.Z); } ObjectGL.End(); ObjectGL.Disable(OpenGL.GL_CULL_FACE); }
public void AddVertex(double X, double Y, double Z, int Index, wColor VertexColor) { Vertices.Add(new wVertex(X, Y, Z, Index)); WpfMesh.Positions.Add(new Point3D(X, Y, Z)); Colors.Add(VertexColor); }
public virtual void SetColorMask(wColor LayerMaskColor, double colorTolerance) { MaskColor = LayerMaskColor; MaskSample = colorTolerance; StandardModifiers[0] = true; }
public void SetProperties(wColor CurrentColor) { Element.SelectedColor = CurrentColor.ToMediaColor(); }
public AmbientLight(string LightName, wColor LightColor, double Intensity) { Name = LightName; }
public wLightLinear(wLine Light_Line, wColor Light_Color) { Line = Light_Line; LightColor = Light_Color; }
public mImageColor(wColor InputColor) { SourceColor = InputColor; }
public AdjustColor(wColor InputColor) { WindColor = InputColor; }