public ColorMapEdit(float domainMin, float domainMax, float knobWidth, float minVisualLength, ColorMap<Vec3> colorMap, Reaction<ColorMap<Vec3>> changed) : base(VisualDirection.Horizontal, HAlign.Left, VAlign.Top, false, false, Enumerable.Empty<Control> ()) { _bar = new ColorMapBar (domainMin, domainMax, knobWidth, minVisualLength, colorMap, changed, React.By<int?> (ItemSelected)); _picker = new ColorPicker (VisualDirection.Vertical, knobWidth, minVisualLength - (3f * knobWidth), Color.Black, true, React.By<Color> (ColorChanged)); Controls.AddRange (EnumerableExt.Enumerate<Control> (_bar, _picker) .Select (c => new Tuple<Control, Reaction<Control>> (c, null))); }
/* @param mapSize before analising the map we can specify a size we want the map to be resized to * this is useful because sometimes the target window that we are going to match is going to be of * a different size */ public VisualRecognitionMap(String mapLocation, ColorMap colorMap, Size desiredMapSize) { Trace.Assert(System.IO.File.Exists(mapLocation), "Cannot create a visualrecognitionmap without a proper map location: " + mapLocation); this.mapLocation = mapLocation; this.mapData = new Hashtable(); this.colorMap = colorMap; this.desiredMapSize = desiredMapSize; Bitmap map = new Bitmap(mapLocation); originalMapSize = map.Size; map.Dispose(); ComputeForDesiredMapSize(desiredMapSize); }
public ColorMapBar(float domainMin, float domainMax, float knobWidth, float minVisualLength, ColorMap<Vec3> colorMap, Reaction<ColorMap<Vec3>> changed, Reaction<int?> itemSelected) { if (colorMap.Count > 0 && (colorMap.MinKey < domainMin || colorMap.MaxKey > domainMax)) throw new ArgumentException ("Color map values out of min/max range."); DomainMin = domainMin; DomainMax = domainMax; BarSize = new SizeF (knobWidth, minVisualLength); ColorMap = colorMap; Changed = changed; ItemSelected = itemSelected; _mouseRegions = new MouseRegions<object> (); }
private static ColorMapFloat ApplyCurve(ColorMap<ushort> map, float[][] curve) { var result = new ColorMapFloat(map.Width, map.Height); Parallel.For(0, result.Height, y => { var input = map.GetRow(y); var output = result.GetRow(y); for (var x = 0; x < result.Width; x++) { output.SetAndMoveNext(curve[0][input.R], curve[1][input.G], curve[2][input.B]); input.MoveNext(); } }); return result; }
public VisualRecognitionManager(Table table, IVisualRecognitionManagerHandler handler) { Trace.Assert(table.Game != PokerGame.Unknown, "Cannot create a visual recognition manager without knowing the game of the table"); Trace.Assert(table.WindowRect != Rectangle.Empty, "Cannot create a visual recognition manager without knowing the window rect"); this.table = table; this.handler = handler; this.colorMap = ColorMap.Create(table.Game); this.recognitionMap = new VisualRecognitionMap(table.VisualRecognitionMapLocation, colorMap); this.matcher = new VisualMatcher(Globals.UserSettings.CurrentPokerClient); this.tableWindow = new Window(table.WindowTitle); this.timedScreenshotTaker = new TimedScreenshotTaker(REFRESH_TIME, tableWindow); this.timedScreenshotTaker.ScreenshotTaken += new TimedScreenshotTaker.ScreenshotTakenHandler(timedScreenshotTaker_ScreenshotTaken); this.timedScreenshotTaker.Start(); }
public static ColorMap BuildColorMap(this Bitmap source) { var map = new ColorMap(); source.GetPixels().Select(p => { if (map.ContainsKey(p.Color)) { map[p.Color]++; } else { map.Add(p.Color, 1); } return p; }).ToList(); return map; }
internal static void myDockableDialog(List <Error> errors) { if (frmMyDlg == null || frmMyDlg.IsDisposed) { frmMyDlg = new frmMyDlg(); using (Bitmap newBmp = new Bitmap(16, 16)) { Graphics g = Graphics.FromImage(newBmp); ColorMap[] colorMap = new ColorMap[1]; colorMap[0] = new ColorMap(); colorMap[0].OldColor = Color.Fuchsia; colorMap[0].NewColor = Color.FromKnownColor(KnownColor.ButtonFace); ImageAttributes attr = new ImageAttributes(); attr.SetRemapTable(colorMap); g.DrawImage(tbBmp_tbTab, new Rectangle(0, 0, 16, 16), 0, 0, 16, 16, GraphicsUnit.Pixel, attr); tbIcon = Icon.FromHandle(newBmp.GetHicon()); } updateUI(errors); NppTbData _nppTbData = new NppTbData(); _nppTbData.hClient = frmMyDlg.Handle; _nppTbData.pszName = "NipCheck Console"; _nppTbData.dlgID = idMyDlg; _nppTbData.uMask = NppTbMsg.DWS_DF_CONT_RIGHT | NppTbMsg.DWS_ICONTAB | NppTbMsg.DWS_ICONBAR; _nppTbData.hIconTab = (uint)tbIcon.Handle; _nppTbData.pszModuleName = PluginName; IntPtr _ptrNppTbData = Marshal.AllocHGlobal(Marshal.SizeOf(_nppTbData)); Marshal.StructureToPtr(_nppTbData, _ptrNppTbData, false); Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_DMMREGASDCKDLG, 0, _ptrNppTbData); } else { updateUI(errors); Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_DMMSHOW, 0, frmMyDlg.Handle); } }
/** <summary> Paints the control. </summary> */ protected override void OnPaint(PaintEventArgs e) { e.Graphics.FillRectangle(new SolidBrush(colorBackground), new Rectangle(0, 0, 10, 11)); e.Graphics.DrawLine(new Pen(colorBorderDark), new Point(0, 0), new Point(9, 0)); e.Graphics.DrawLine(new Pen(colorBorderDark), new Point(0, 0), new Point(0, 10)); e.Graphics.DrawLine(new Pen(colorBorderLight), new Point(1, 10), new Point(9, 10)); e.Graphics.DrawLine(new Pen(colorBorderLight), new Point(9, 1), new Point(9, 10)); if (checkImage != null && checkState != CheckState.Unchecked) { ColorMap colorMap = new ColorMap(); colorMap.OldColor = Color.Black; colorMap.NewColor = colorCheck; ImageAttributes imageAttributes = new ImageAttributes(); imageAttributes.SetRemapTable(new ColorMap[] { colorMap }); Point point = Point.Empty; Size size = checkImage.Size; Rectangle rect = new Rectangle(0, 0, 10, 11); point.X = (rect.Width - size.Width) / 2; point.Y = (rect.Height - size.Height) / 2; e.Graphics.DrawImage(checkImage, new Rectangle(point, size), 0, 0, 8, 8, GraphicsUnit.Pixel, imageAttributes ); } SpriteFont font = SpriteFont.FontBold; switch (this.fontType) { case FontType.Regular: font = SpriteFont.FontRegular; break; case FontType.Bold: font = SpriteFont.FontBold; break; case FontType.Small: font = SpriteFont.FontSmall; break; } font.Draw(e.Graphics, new Point(10 + 4, 0), Text, ForeColor, outlineColor); }
public override void Initialize(string extraData) { base.Initialize(extraData); switch (Index) { case 12: map = new ColorMap(new Color32(96, 161, 123, 255), new Color32(174, 164, 42, 255), new Color32(96, 161, 123, 255), new Color32(30, 191, 1, 255)); break; case 13: map = new ColorMap(new Color32(96, 161, 96, 255), new Color32(174, 109, 42, 255), new Color32(96, 161, 96, 255), new Color32(107, 191, 1, 255)); break; case 14: map = new ColorMap(new Color32(96, 161, 150, 255), new Color32(129, 174, 42, 255), new Color32(96, 161, 150, 255), new Color32(1, 191, 53, 255)); break; case 225: map = new ColorMap(new Color32(90, 141, 160, 255), new Color32(119, 152, 51, 255), new Color32(86, 141, 162, 255), new Color32(1, 158, 65, 255)); break; } }
private NormalizedHand EvaluatePixels(BgrImage image, int startX, int width, ColorMap colorMap, NormalizedHand neutralHand) { HandBuilder handBuilder = new HandBuilder(); for (int y = 0; y < image.Height; y++) { for (int x = startX; x < startX + width; x++) { BgrPixel pixel = image.GetPixel(x, y); if (this.IsBackground(pixel, x, y)) { image.SetPixel(this.backgroundPixel, x, y); } else if (!colorMap.Satisfies(pixel)) { image.SetPixel(this.unknownPixel, x, y); } else { image.SetPixel(this.skinPixel, x, y); handBuilder.Append(x, y); } } } NormalizedHand detectedHand = new HandNormalizer(image.Width, image.Height).Normalize(handBuilder.Build()); if (this.Tuned && neutralHand != null && detectedHand.Weight < neutralHand.Weight / DIVISOR_TO_GET_VALID_HAND_WEIGHT_LOWER_BOUND_FROM_NEUTRAL_HAND_WEIGHT) { // after tuning the neutral hands are cached // if the weight of the hand is under a threshold // (which probably means that there is no hand on the image but noise) // then we're going to use the cached neutral hand instead of the freshly detected (wrong) one detectedHand = new NormalizedHand(neutralHand.X, neutralHand.Y, neutralHand.Weight); } return(detectedHand); }
public static Bitmap RemapColor(Bitmap image, Color oldColor, Color newColor) { var newImage = new Bitmap(image); var graphics = Graphics.FromImage(newImage); var imageAttributes = new ImageAttributes(); var colorMap = new ColorMap(); colorMap.OldColor = oldColor; colorMap.NewColor = newColor; ColorMap[] remapTable = { colorMap }; imageAttributes.SetRemapTable(remapTable, ColorAdjustType.Bitmap); graphics.DrawImage(newImage, new Rectangle(0, 0, newImage.Width, newImage.Height), 0, 0, newImage.Width, newImage.Height, GraphicsUnit.Pixel, imageAttributes); graphics.Dispose(); return(newImage); }
private static LinearGradientBrush CreatePaletteBrush(ColorMap cmap) { var stops = new GradientStopCollection(); var pos = 0.0f; foreach (var rgb in cmap.Colors()) { stops.Add(new GradientStop { Color = rgb.ToUwpColor(), Offset = pos++ / ColorCountDefault }); } return(new LinearGradientBrush { GradientStops = stops, StartPoint = new Point(0, 0), EndPoint = new Point(1, 1) }); }
public Bitmap GetBitmap(Character character) { // use the previously cached one if there Bitmap bitmap = null; if (mCharacterCache.TryGetValue(character, out bitmap)) { return(bitmap); } // not there, so create it Bitmap characterBitmap = new Bitmap(Width, Height); using (Graphics g = Graphics.FromImage(characterBitmap)) { byte glyph = (byte)character.Glyph; int column = glyph % GlyphsPerRow; int row = glyph / GlyphsPerRow; Rectangle destRect = new Rectangle(0, 0, Width, Height); ColorMap map = new ColorMap(); map.OldColor = Color.Black; map.NewColor = character.ForeColor.ToSystemColor(); ImageAttributes attributes = new ImageAttributes(); attributes.SetRemapTable(new ColorMap[] { map }); g.DrawImage(mBitmap, destRect, column * Width, row * Height, Width, Height, GraphicsUnit.Pixel, attributes); } // cache it mCharacterCache[character] = characterBitmap; return(characterBitmap); }
private Bitmap RemapColor(Bitmap image, Color color) { // Set the image attribute's color mappings var colorMap = new ColorMap[8]; colorMap[0] = new ColorMap { OldColor = GetColor("#FFF8FF3A"), NewColor = color }; colorMap[1] = new ColorMap { OldColor = GetColor("#FFCFAA18"), NewColor = Brightness(color, 0.9) }; colorMap[2] = new ColorMap { OldColor = GetColor("#FFB36E00"), NewColor = Brightness(color, 1.5) }; colorMap[3] = new ColorMap { OldColor = GetColor("#FFDFCB25"), NewColor = Brightness(color, 0.9) }; colorMap[4] = new ColorMap { OldColor = GetColor("#FFF8FE3A"), NewColor = color }; colorMap[5] = new ColorMap { OldColor = GetColor("#FFC28D0D"), NewColor = Brightness(color, 1.5) }; colorMap[6] = new ColorMap { OldColor = GetColor("#A5B36E00"), NewColor = Brightness(color, 1.5) }; colorMap[7] = new ColorMap { OldColor = GetColor("#37B36E00"), NewColor = Brightness(color, 1.5) }; var attr = new ImageAttributes(); attr.SetRemapTable(colorMap); var g = Graphics.FromImage(image); g.DrawImage(image, new Rectangle(0, 0, image.Width, image.Height), 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, attr); return(image); }
private void draw_mandel() { Color[] cs = new Color[256]; cs = ColorMap.GetColors(5); Bitmap bp = new Bitmap(width, height); double x, y, x1, y1, xx; int looper, s, z = 0; double step_x, step_y = 0.0; step_x = (xmax - xmin) / width / zoom; step_y = (ymax - ymin) / height / zoom; x = xmin; for (s = 1; s < width; s++) { y = ymin; for (z = 1; z < height; z++) { x1 = 0; y1 = 0; looper = 0; while (looper < 100 && Math.Sqrt((x1 * x1) + (y1 * y1)) < 2) { looper++; xx = (x1 * x1) - (y1 * y1) + x; y1 = 2 * x1 * y1 + y; x1 = xx; } double perc = looper / (100.0); int val = ((int)(perc * 255)); bp.SetPixel(s, z, cs[val]); y += step_y; } x += step_x; } panel.BackgroundImage = bp; }
/// <summary> /// Construct imageattribute based upon Transparency and/or Color Re-map /// </summary> private void ConstructImageAttributes() { if (_imageAttributes != null) { _imageAttributes.Dispose(); } if (Transparency == 0 && (SymbolColor.ToArgb() == RemapColor.ToArgb())) { return; } _imageAttributes = new ImageAttributes(); if (SymbolColor.ToArgb() != RemapColor.ToArgb()) { var cm = new ColorMap[1]; var a = SymbolColor.A; if (Transparency > 0) { a = (byte)(Math.Ceiling(255 * (1F - Transparency))); } var nc = Color.FromArgb(a, SymbolColor); cm[0] = new ColorMap(); cm[0].OldColor = RemapColor; cm[0].NewColor = nc; ImageAttributes.SetRemapTable(cm); } else { var cm = new ColorMatrix(); cm.Matrix33 = 1F - _transparency; ImageAttributes.SetColorMatrix(cm); } }
protected override void OnPaint(PaintEventArgs e) { if (IsMouseOver && Enabled) { using (Pen pen = new Pen(ForeColor)) { e.Graphics.DrawRectangle(pen, Rectangle.Inflate(ClientRectangle, -1, -1)); } } using (ImageAttributes imageAttributes = new ImageAttributes()) { ColorMap[] colorMap = new ColorMap[2]; colorMap[0] = new ColorMap { OldColor = Color.FromArgb(0, 0, 0), NewColor = ForeColor }; colorMap[1] = new ColorMap { OldColor = Image.GetPixel(0, 0), NewColor = Color.Transparent }; imageAttributes.SetRemapTable(colorMap); e.Graphics.DrawImage( Image, new Rectangle(0, 0, Image.Width, Image.Height), 0, 0, Image.Width, Image.Height, GraphicsUnit.Pixel, imageAttributes); } base.OnPaint(e); }
internal static void BindsDialog() { if (BindsWindow == null) { BindsWindow = new cmdBindings(); using (Bitmap newBmp = new Bitmap(16, 16)) { Graphics g = Graphics.FromImage(newBmp); ColorMap[] colorMap = new ColorMap[1]; colorMap[0] = new ColorMap(); colorMap[0].OldColor = Color.Fuchsia; colorMap[0].NewColor = Color.FromKnownColor(KnownColor.Green); ImageAttributes attr = new ImageAttributes(); attr.SetRemapTable(colorMap); g.DrawImage(tbBmp_tbTab, new Rectangle(0, 0, 16, 16), 0, 0, 16, 16, GraphicsUnit.Pixel, attr); tbIcon = Icon.FromHandle(newBmp.GetHicon()); } NppTbData _nppTbData = new NppTbData(); _nppTbData.hClient = BindsWindow.Handle; _nppTbData.pszName = "Command Bindings"; _nppTbData.dlgID = idMyDlg; _nppTbData.uMask = NppTbMsg.DWS_DF_CONT_RIGHT | NppTbMsg.DWS_ICONTAB | NppTbMsg.DWS_ICONBAR; _nppTbData.hIconTab = (uint)tbIcon.Handle; _nppTbData.pszModuleName = PluginName; IntPtr _ptrNppTbData = Marshal.AllocHGlobal(Marshal.SizeOf(_nppTbData)); Marshal.StructureToPtr(_nppTbData, _ptrNppTbData, false); Win32.SendMessage(PluginBase.nppData._nppHandle, NppMsg.NPPM_DMMREGASDCKDLG, 0, _ptrNppTbData); BindsWindow.cmdBindings_Load(); } else { Win32.SendMessage(PluginBase.nppData._nppHandle, NppMsg.NPPM_DMMSHOW, 0, BindsWindow.Handle); } }
private static void DrawFrameControl(Graphics graphics, int x, int y, int width, int height, WinApi.DrawFrameControlTypes kind, WinApi.DrawFrameControlStates state, Color foreColor, Color backColor) { WinApi.RECT rcFrame = WinApi.RECT.FromXYWH(0, 0, width, height); using (Bitmap bitmap = new Bitmap(width, height)) { using (Graphics g2 = Graphics.FromImage(bitmap)) { g2.Clear(Color.Transparent); /* using( WindowsGraphics wg = WindowsGraphics.FromGraphics(g2) ){ * DrawFrameControl(new HandleRef(wg, wg.DeviceContext.Hdc), ref rcFrame, kind, (int) state); */ IntPtr dc = g2.GetHdc(); try { WinApi.DrawFrameControl(new HandleRef(null, dc), ref rcFrame, kind, state); } finally { g2.ReleaseHdc(); } if (foreColor == Color.Empty || backColor == Color.Empty) { graphics.DrawImage(bitmap, x, y); } else { // Replace black/white with foreColor/backColor. ImageAttributes attrs = new ImageAttributes(); ColorMap cm1 = new ColorMap(); cm1.OldColor = Color.Black; cm1.NewColor = foreColor; ColorMap cm2 = new ColorMap(); cm2.OldColor = Color.White; cm2.NewColor = backColor; attrs.SetRemapTable(new ColorMap[2] { cm1, cm2 }, ColorAdjustType.Bitmap); graphics.DrawImage(bitmap, new Rectangle(x, y, width, height), 0, 0, width, height, GraphicsUnit.Pixel, attrs, null, IntPtr.Zero); } } } }
internal static void myDockableDialog() { if (frmMyDlg == null) { frmMyDlg = new FormTreeView(); using (Bitmap newBmp = new Bitmap(16, 16)) { Graphics g = Graphics.FromImage(newBmp); ColorMap[] colorMap = new ColorMap[1]; colorMap[0] = new ColorMap { OldColor = Color.Blue, NewColor = Color.FromKnownColor(KnownColor.ButtonFace) }; ImageAttributes attr = new ImageAttributes(); attr.SetRemapTable(colorMap); g.DrawImage(tbBmp, new Rectangle(0, 0, 16, 16), 0, 0, 16, 16, GraphicsUnit.Pixel, attr); tbIcon = Icon.FromHandle(newBmp.GetHicon()); } NppTbData _nppTbData = new NppTbData(); _nppTbData.hClient = frmMyDlg.Handle; _nppTbData.pszName = "XML Treeview"; _nppTbData.dlgID = idMyDlg; _nppTbData.uMask = NppTbMsg.DWS_DF_CONT_RIGHT | NppTbMsg.DWS_ICONTAB | NppTbMsg.DWS_ICONBAR; _nppTbData.hIconTab = (uint)tbIcon.Handle; _nppTbData.pszModuleName = PluginName; IntPtr _ptrNppTbData = Marshal.AllocHGlobal(Marshal.SizeOf(_nppTbData)); Marshal.StructureToPtr(_nppTbData, _ptrNppTbData, false); Win32.SendMessage(PluginBase.nppData._nppHandle, NppMsg.NPPM_DMMREGASDCKDLG, 0, _ptrNppTbData); } else { Win32.SendMessage(PluginBase.nppData._nppHandle, NppMsg.NPPM_DMMSHOW, 0, frmMyDlg.Handle); } }
private void SetBrushRemapTable_Click(object sender, System.EventArgs e) { Graphics g = this.CreateGraphics(); g.Clear(this.BackColor); ColorMap[] clrMapTable = new ColorMap[1]; clrMapTable[0] = new ColorMap(); clrMapTable[0].OldColor = Color.Red;; clrMapTable[0].NewColor = Color.Green; ImageAttributes ImgAttr = new ImageAttributes(); ImgAttr.SetBrushRemapTable(clrMapTable); Image curImage = Image.FromFile("Sample.bmp"); g.DrawImage(curImage, 0, 0); Rectangle rect = new Rectangle(0, 0, 400, 400); g.DrawImage(curImage, rect, 0, 0, 400, 400, GraphicsUnit.Pixel, ImgAttr); // Dispose g.Dispose(); }
private void DrawModulationSpectraHerz(List <float[]> spectra) { var minValue = spectra.SelectMany(s => s).Min(); var maxValue = spectra.SelectMany(s => s).Max(); var cmap = new ColorMap("blues", minValue, maxValue); var g = modulationSpectrumPanel.CreateGraphics(); g.Clear(Color.White); var spectrumBitmap = new Bitmap(spectra.Count, spectra[0].Length); for (var i = 0; i < spectra.Count; i++) { for (var j = 0; j < spectra[i].Length; j++) { spectrumBitmap.SetPixel(i, spectra[i].Length - 1 - j, cmap.GetColor(spectra[i][j])); } } g.DrawImage(spectrumBitmap, 25, 25, modulationSpectrumPanel.Width - 25, modulationSpectrumPanel.Height - 25); }
protected override void OnPaint(PaintEventArgs e) { if (this.IsMouseOver && base.Enabled) { using (Pen pen = new Pen(this.ForeColor)) { e.Graphics.DrawRectangle(pen, Rectangle.Inflate(base.ClientRectangle, -1, -1)); } } using (ImageAttributes imageAttributes = new ImageAttributes()) { ColorMap[] array = new ColorMap[2]; array[0] = new ColorMap(); array[0].OldColor = Color.FromArgb(0, 0, 0); array[0].NewColor = this.ForeColor; array[1] = new ColorMap(); array[1].OldColor = this.Image.GetPixel(0, 0); array[1].NewColor = Color.Transparent; imageAttributes.SetRemapTable(array); e.Graphics.DrawImage(this.Image, new Rectangle(0, 0, this.Image.Width, this.Image.Height), 0, 0, this.Image.Width, this.Image.Height, GraphicsUnit.Pixel, imageAttributes); } base.OnPaint(e); }
public override void AutoAdjust(LightFilter filter, ColorMap <Vector3> map) { const int maxValue = 1023; var h = map.GetHistogram(maxValue); var wcenter = h.FindWeightCenter(Vector3.Zero, Vector3.One); var wcenterf = (wcenter - filter.MinIn) / (filter.MaxIn - filter.MinIn); var contrast = Log(new Vector3(0.5f), wcenterf) + new Vector3(0.5f); //f.Contrast = f.Contrast.Average(); // h.Transform((index, value, comp) => (int)(1023 * Math.Pow(index / 1023f, _contrast[comp]))); Vector3 max; Vector3 min; h.FindMinMax(out min, out max, 0.005f, 0.001f); //min = new Vector3(min.MinComponent()); //max = new Vector3(max.MaxComponent()); filter.Set(min, max, Vector3.Zero, Vector3.One, contrast); }
private static int SelectTile(ColorMap map, int x, int y) { Color?color = map.Get(x, y); int bitMask = 0; if (map.Get(x, y + 1) == color) { bitMask = bitMask | 1; } if (map.Get(x + 1, y) == color) { bitMask = bitMask | 1 << 1; } if (map.Get(x, y - 1) == color) { bitMask = bitMask | 1 << 2; } if (map.Get(x - 1, y) == color) { bitMask = bitMask | 1 << 3; } return(bitMask); }
/// <summary> /// Fills in the content of the control showing all values of Hue (from 0 to 360) , a rainbow /// </summary> /// <param name="map">The map to update.</param> private static void DrawStyleHue(ref ColorMap map) { // S and L will both be at 100% for this DrawStyle var hsl = new HSL { S = 1.0, L = 1.0 }; // i represents the current line of pixels we want to draw horizontally for (var i = 0; i < map.Height; i++) { // H (hue) is based on the current vertical position hsl.H = 1.0 - ((double)i / map.Height); // Get the Color for this line var rgb = AdobeColors.HSLToRGB(hsl); for (var l = 0; l < map.Width; l++) { map.Set(l, i, rgb); } } }
/// <summary>Fills in the content of the control showing all values of Luminance (0 to 100%) for the given /// Hue and Saturation.</summary> /// <param name="map">The map to update.</param> private void DrawStyleLuminance(ref ColorMap map) { // Use the H and S values of the current color (m_hsl) var colorToConvert = new HSL { H = this.hsl.H, S = this.hsl.S }; // i represents the current line of pixels we want to draw horizontally for (var i = 0; i < map.Height; i++) { // L (Luminance) is based on the current vertical position colorToConvert.L = 1.0 - ((double)i / map.Height); // Get the Color for this line var rgb = AdobeColors.HSLToRGB(colorToConvert); for (var l = 0; l < map.Width; l++) { map.Set(l, i, rgb); } } }
private void UpdatePanels() { var colors = new[] { new byte[] { 0, 0, 0 }, new byte[] { 255, 255, 0 }, new byte[] { 255, 0, 0 }, new byte[] { 255, 255, 255 } }; var positions = new[] { 0, 0.3f, 0.7f, 1 }; var cmap1 = ColorMap.CreateFromColors(colors, positions, colorCount: ColorCountDefault); var cmap2 = new ColorMap(SelectedPalette, colorCount: ColorCountDefault); var cmap3 = new MirrorColorMap(cmap2); PaletteBrush1 = CreatePaletteBrush(cmap1); PaletteBrush2 = CreatePaletteBrush(cmap2); PaletteBrush3 = CreatePaletteBrush(cmap3); OnPropertyChanged("PaletteBrush1"); OnPropertyChanged("PaletteBrush2"); OnPropertyChanged("PaletteBrush3"); }
/// <summary> /// /// </summary> protected virtual void Init() { // using (Bitmap newBmp = new Bitmap(16, 16)) { Graphics g = Graphics.FromImage(newBmp); ColorMap[] colorMap = new ColorMap[1]; colorMap[0] = new ColorMap(); colorMap[0].OldColor = Color.Fuchsia; colorMap[0].NewColor = Color.FromKnownColor(KnownColor.ButtonFace); ImageAttributes attr = new ImageAttributes(); attr.SetRemapTable(colorMap); g.DrawImage(Resources.markdown_16x16_solid_bmp, new Rectangle(0, 0, 16, 16), 0, 0, 16, 16, GraphicsUnit.Pixel, attr); toolbarIcon = Icon.FromHandle(newBmp.GetHicon()); } //Get the AssemblyTitle this.assemblyTitle = ((AssemblyTitleAttribute)Attribute.GetCustomAttribute(Assembly.GetExecutingAssembly(), typeof(AssemblyTitleAttribute), false)).Title; // NppTbData _nppTbData = new NppTbData(); _nppTbData.hClient = this.Handle; _nppTbData.pszName = this.assemblyTitle; _nppTbData.dlgID = this.markdownViewer.commandId; _nppTbData.uMask = NppTbMsg.DWS_DF_CONT_RIGHT | NppTbMsg.DWS_ICONTAB | NppTbMsg.DWS_ICONBAR; _nppTbData.hIconTab = (uint)toolbarIcon.Handle; _nppTbData.pszModuleName = Main.PluginName; IntPtr _ptrNppTbData = Marshal.AllocHGlobal(Marshal.SizeOf(_nppTbData)); Marshal.StructureToPtr(_nppTbData, _ptrNppTbData, false); //Register dockable window and hide initially Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_DMMREGASDCKDLG, 0, _ptrNppTbData); Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_DMMHIDE, 0, this.Handle); //Hide the E-mail items if Outlook is not installed this.sendAsTextMail.Visible = IsOutlookInstalled(); this.sendAsHTMLMail.Visible = IsOutlookInstalled(); }
protected override Canvas Render(CameraRenderOptions options) { // Patterns var map1 = new ColorMap(new ColorMapEntry(0, Colors.White)); var floorPattern = new PerlinPattern(map1, transform: Matrix4x4.CreateTranslation(-1000, 0, 0)); // Shapes var floor = new Plane( "Floor", Matrix4x4.CreateRotationY(Math.PI / 4), new Material(pattern: floorPattern, specular: 0)); var left = new Sphere( "Left", Matrix4x4.CreateScaling(0.33, 0.33, 0.33).Translate(-2, 0.33, -0.75), new Material(pattern: floorPattern, diffuse: 0.7, specular: 0.3)); var middle = new Sphere( "Middle", Matrix4x4.CreateTranslation(-0.5, 1, 0.5), new Material(pattern: floorPattern, diffuse: 0.7, specular: 0.3)); var right = new Sphere( "Right", Matrix4x4.CreateScaling(0.5, 0.5, 0.5).Translate(1.5, 0.5, -0.5), new Material(pattern: floorPattern, diffuse: 0.7, specular: 0.3)); var light = new PointLight(new Point(-10, 10, -10), Colors.White); var world = new World(light, floor, left, middle, right); var cameraTransform = Matrix4x4.CreateLookAt(new Point(0, 1.5, -5), new Point(0, 1, 0), Vector.UnitY); var camera = new Camera(CanvasWidth, CanvasHeight, Math.PI / 3, cameraTransform); Canvas canvas = camera.Render(world, options); return(canvas); }
//private int[] brush3 = { // 0,1, // 1,0, // 0,-1, // -1,-1, // -1,1, // 0,1 //} // Initialize public MainForm() { int w = 0, h = 0; if (SETTINGS.TRUE_COL) { w = SETTINGS.WIDTH * 3 / 4 * SETTINGS.COL + SETTINGS.WIDTH / 4 + 10; h = SETTINGS.HEIGHT * SETTINGS.ROW + SETTINGS.HEIGHT / 2 + 10; } else { w = SETTINGS.WIDTH * SETTINGS.COL + SETTINGS.WIDTH / 2 + 10; h = SETTINGS.HEIGHT * 3 / 4 * SETTINGS.ROW + SETTINGS.HEIGHT / 4 + 10; } pan_right_value = 0; pan_down_value = 0; cme = new float[][] { colormatrix_r, colormatrix_g, colormatrix_b, colormatrix_a, colormatrix_t }; cm = new ColorMatrix(cme); Bitmap maptemplate = new Bitmap(w, h, PixelFormat.Format24bppRgb); Graphics gt = Graphics.FromImage(maptemplate); //gt.FillRectangle(new SolidBrush(Color.Magenta), new Rectangle(0, 0, w, h)); //maptemplate.MakeTransparent(Color.Magenta); map = (Bitmap)maptemplate.Clone(); grid = (Bitmap)maptemplate.Clone(); coordNum = (Bitmap)maptemplate.Clone(); maptemplate.Dispose(); COLOR_MAP_ENTRY = new ColorMap(); COLOR_MAP_ENTRY.OldColor = Color.Magenta; COLOR_MAP_ENTRY.NewColor = Color.Transparent; //underlay_bmp = new Bitmap(underlay); //blackwhite = grid.Palette; //这段操作必须是:先创建新的颜色表,再填写颜色表,最后把颜色表放回位图。 //blackwhite.Entries[0] = Color.Transparent; //blackwhite.Entries[1] = Color.Black; //grid.Palette = blackwhite; InitializeComponent(); }
/// <summary>Anzeige Koordinatenverschieben Dialog</summary> internal static void transformationCoordDialog() { if (frmTransform == null) { frmTransform = new frmTransformCoord(ref pluginLanguage); frmTransform.setFromSetting(ref pluginSettings, ref notepad); using (Bitmap newBmp = new Bitmap(16, 16)) { Graphics g = Graphics.FromImage(newBmp); ColorMap[] colorMap = new ColorMap[1]; colorMap[0] = new ColorMap(); colorMap[0].OldColor = Color.Fuchsia; colorMap[0].NewColor = Color.FromKnownColor(KnownColor.ButtonFace); ImageAttributes attr = new ImageAttributes(); attr.SetRemapTable(colorMap); g.DrawImage(transf, new Rectangle(0, 0, 16, 16), 0, 0, 16, 16, GraphicsUnit.Pixel, attr); tbIcon = Icon.FromHandle(newBmp.GetHicon()); } NppTbData _nppTbData = new NppTbData(); _nppTbData.hClient = frmTransform.Handle; _nppTbData.pszName = pluginLanguage.getLanguageText("frmTransformCoord_Title");; _nppTbData.dlgID = idFrmTransform; _nppTbData.uMask = NppTbMsg.DWS_DF_CONT_RIGHT | NppTbMsg.DWS_ICONTAB | NppTbMsg.DWS_ICONBAR; _nppTbData.hIconTab = (uint)tbIcon.Handle; _nppTbData.pszModuleName = PluginName; IntPtr _ptrNppTbData = Marshal.AllocHGlobal(Marshal.SizeOf(_nppTbData)); Marshal.StructureToPtr(_nppTbData, _ptrNppTbData, false); Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_DMMREGASDCKDLG, 0, _ptrNppTbData); } else { Win32.SendMessage(PluginBase.nppData._nppHandle, (uint)NppMsg.NPPM_DMMSHOW, 0, frmTransform.Handle); } frmTransform.readCuDatas(); frmTransform.setMinWidth(); }
public virtual void Bind() { if (ColorMap != null) { ColorMap.Bind(0); } if (NormalMap != null) { NormalMap.Bind(1); } //if (TSpec != null) TSpec.Bind(2); if (ShadowMap != null) { // ShadowMap.Bind ( 2 ); } if (EnvironmentMap != null) { EnvironmentMap.Bind(4); } if (SpecularMap != null) { SpecularMap.Bind(3); } if (ExtraMap != null) { ExtraMap.Bind(5); } Active = this; }
public IEnumerable <ColorLegendItemDto> Create(ColorMap map, List <string> values, ColorPalette palette) { if (values.Any(p => p == null)) { yield return(CreateNullColorLegendItem()); } var distinctValues = values .Distinct() .ToList(); var nonNullValues = distinctValues .Where(p => p != null) .ToList(); var results = (distinctValues.Count() <= palette.Colors.Count()) ? CreateDiscreteColorLegendItems(map, nonNullValues) : CreateContinuousColorLegendItems(map, palette); foreach (var result in results) { yield return(result); } }
public static Image CreateButtonImage(Bitmap original, Color backColor, Color foreColor, int imageSize) { Bitmap image = new Bitmap(imageSize, imageSize); image.SetResolution(original.HorizontalResolution, original.VerticalResolution); Graphics graphics = Graphics.FromImage(image); ColorMap[] map = new ColorMap[0x100]; for (int i = 0; i < 0x100; i++) { map[i] = new ColorMap(); map[i].OldColor = Color.FromArgb(i, i, i); map[i].NewColor = Color.FromArgb((((0xff - i) * foreColor.R) / 0xff) + ((i * backColor.R) / 0xff), (((0xff - i) * foreColor.G) / 0xff) + ((i * backColor.G) / 0xff), (((0xff - i) * foreColor.B) / 0xff) + ((i * backColor.B) / 0xff)); } ImageAttributes imageAttr = new ImageAttributes(); imageAttr.SetRemapTable(map); graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; graphics.PixelOffsetMode = PixelOffsetMode.HighQuality; graphics.SmoothingMode = SmoothingMode.HighQuality; graphics.DrawImage(original, new Rectangle(0, 0, imageSize, imageSize), 0, 0, original.Width, original.Height, GraphicsUnit.Pixel, imageAttr); graphics.Dispose(); return(image); }
/** <summary> Draws the text. </summary> */ public void Draw(Graphics g, Point position, string text, Color color) { int spacing = 0; ColorMap colorMap = new ColorMap(); colorMap.OldColor = Color.Black; colorMap.NewColor = color; ImageAttributes imageAttributes = new ImageAttributes(); imageAttributes.SetRemapTable(new ColorMap[] { colorMap }); for (int i = 0; i < text.Length; i++) { g.DrawImage(image, new Rectangle(position.X + spacing, position.Y, charSpacing[(int)text[i] - (int)minRange] - 1, height), (int)charPositions[(int)text[i] - (int)minRange].X, (int)charPositions[(int)text[i] - (int)minRange].Y, (int)charSpacing[(int)text[i] - (int)minRange] - (int)1, (int)height, GraphicsUnit.Pixel //, imageAttributes ); spacing += charSpacing[(int)text[i] - (int)minRange]; } /*for (int i = 0; i < text.Length; i++) { * g.DrawImage(image, position.X + spacing, position.Y, * new Rectangle( * new Point(charPositions[(int)text[i] - (int)minRange].X, charPositions[(int)text[i] - (int)minRange].Y), * new Size(charSpacing[(int)text[i] - (int)minRange] - 1, height) * ), GraphicsUnit.Pixel * ); * spacing += charSpacing[(int)text[i] - (int)minRange]; * }*/ }
private static void ApplySingleFilterInplace(ColorMap<float> map, ColorToColorFilter<float, float> filter) { Parallel.For(0, map.Height, y => { var pix = map.GetRow(y); for (var x = 0; x < map.Width; x++) { filter.ProcessColor(pix, pix); pix.MoveNext(); } }); }
/// <summary> /// 加图片水印 /// </summary> /// <param name="imgPath">原图文件名物理路径</param> /// <param name="filename">生成文件名物理路径</param> /// <param name="watermarkFilename">水印文件名物理路径</param> /// <param name="positon">图片水印位置 0=不使用 1=左上 2=中上 3=右上 4=左中 ... 9=右下</param> /// <param name="quality">附加图片质量,0--100之间,值大质量高</param> /// <param name="watermarkTransparency">水印的透明度 1--100 100为不透明</param> public static bool AddImageSignPic(string imgPath, string filename, string watermarkFilename, Enums.Position positon, int quality, int watermarkTransparency, int minWidth, int minHeight) { using (Bitmap img = new Bitmap(imgPath)) { Graphics g ; //如果原图片是索引像素格式之列的,则需要转换 if (IsPixelFormatIndexed(img.PixelFormat)) { using (Bitmap bmp = new Bitmap(img.Width, img.Height, PixelFormat.Format32bppArgb)) { g = Graphics.FromImage(bmp); g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; g.CompositingQuality = System.Drawing.Drawing2D.CompositingQuality.HighQuality; g.DrawImage(img, 0, 0); } } else { g = Graphics.FromImage(img); //设置高质量插值法 g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.High; //设置高质量,低速度呈现平滑程度 g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; } int watermarkStatus = (int)positon; using (System.Drawing.Image watermark = new Bitmap(watermarkFilename)) { if (watermark.Height >= img.Height || watermark.Width >= img.Width) { return false; } if (img.Width < minWidth || img.Height < minHeight) { return false; } using (ImageAttributes imageAttributes = new ImageAttributes()) { ColorMap colorMap = new ColorMap(); colorMap.OldColor = Color.FromArgb(255, 0, 255, 0); colorMap.NewColor = Color.FromArgb(0, 0, 0, 0); ColorMap[] remapTable = { colorMap }; imageAttributes.SetRemapTable(remapTable, ColorAdjustType.Bitmap); float transparency = 0.5F; if (watermarkTransparency >= 1 && watermarkTransparency <= 100) { transparency = (watermarkTransparency / 100.0F); } float[][] colorMatrixElements = { new float[] {1.0f, 0.0f, 0.0f, 0.0f, 0.0f}, new float[] {0.0f, 1.0f, 0.0f, 0.0f, 0.0f}, new float[] {0.0f, 0.0f, 1.0f, 0.0f, 0.0f}, new float[] {0.0f, 0.0f, 0.0f, transparency, 0.0f}, new float[] {0.0f, 0.0f, 0.0f, 0.0f, 1.0f} }; ColorMatrix colorMatrix = new ColorMatrix(colorMatrixElements); imageAttributes.SetColorMatrix(colorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap); int xpos = 0; int ypos = 0; switch (watermarkStatus) { case 1: xpos = (int)(img.Width * (float).01); ypos = (int)(img.Height * (float).01); break; case 2: xpos = (int)((img.Width * (float).50) - (watermark.Width / 2)); ypos = (int)(img.Height * (float).01); break; case 3: xpos = (int)((img.Width * (float).99) - (watermark.Width)); ypos = (int)(img.Height * (float).01); break; case 4: xpos = (int)(img.Width * (float).01); ypos = (int)((img.Height * (float).50) - (watermark.Height / 2)); break; case 5: xpos = (int)((img.Width * (float).50) - (watermark.Width / 2)); ypos = (int)((img.Height * (float).50) - (watermark.Height / 2)); break; case 6: xpos = (int)((img.Width * (float).99) - (watermark.Width)); ypos = (int)((img.Height * (float).50) - (watermark.Height / 2)); break; case 7: xpos = (int)(img.Width * (float).01); ypos = (int)((img.Height * (float).99) - watermark.Height); break; case 8: xpos = (int)((img.Width * (float).50) - (watermark.Width / 2)); ypos = (int)((img.Height * (float).99) - watermark.Height); break; case 9: xpos = (int)((img.Width * (float).99) - (watermark.Width)); ypos = (int)((img.Height * (float).99) - watermark.Height); break; } g.DrawImage(watermark, new Rectangle(xpos, ypos, watermark.Width, watermark.Height), 0, 0, watermark.Width, watermark.Height, GraphicsUnit.Pixel, imageAttributes); ImageCodecInfo[] codecs = ImageCodecInfo.GetImageEncoders(); ImageCodecInfo ici = null; foreach (ImageCodecInfo codec in codecs) { if (codec.MimeType.ToLower().IndexOf("jpeg") > -1 || codec.MimeType.ToLower().IndexOf("jpg") > -1) { ici = codec; } } EncoderParameters encoderParams = new EncoderParameters(); long[] qualityParam = new long[1]; if (quality < 0 || quality > 100) { quality = 80; } qualityParam[0] = quality; EncoderParameter encoderParam = new EncoderParameter(System.Drawing.Imaging.Encoder.Quality, qualityParam); encoderParams.Param[0] = encoderParam; if (ici != null) { img.Save(filename, ici, encoderParams); } else { img.Save(filename); } g.Dispose(); img.Dispose(); watermark.Dispose(); imageAttributes.Dispose(); } } } return true; }
void BuildRGB() { Log.Trace($"BuildRGB called"); lock (this) { if (rgbmap == null) { var map = ReadRaw(); var filters = PrepareFilters(); var processor = new ImageProcessor(map, filters); rgbmap = (ColorMap<BGRA8>)processor.Invoke(); map.Dispose(); } } Log.Trace("BuildRGB finished"); }
// Generates content of slideMasterPart1. private void GenerateSlideMasterPart1Content(SlideMasterPart slideMasterPart1) { SlideMaster slideMaster1 = new SlideMaster(); slideMaster1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideMaster1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideMaster1.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData4 = new CommonSlideData(); Background background2 = new Background(); BackgroundStyleReference backgroundStyleReference2 = new BackgroundStyleReference(){ Index = (UInt32Value)1001U }; A.SchemeColor schemeColor45 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background1 }; backgroundStyleReference2.Append(schemeColor45); background2.Append(backgroundStyleReference2); ShapeTree shapeTree4 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties4 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties15 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties4 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties15 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties4.Append(nonVisualDrawingProperties15); nonVisualGroupShapeProperties4.Append(nonVisualGroupShapeDrawingProperties4); nonVisualGroupShapeProperties4.Append(applicationNonVisualDrawingProperties15); GroupShapeProperties groupShapeProperties4 = new GroupShapeProperties(); A.TransformGroup transformGroup4 = new A.TransformGroup(); A.Offset offset12 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents12 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset4 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents4 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup4.Append(offset12); transformGroup4.Append(extents12); transformGroup4.Append(childOffset4); transformGroup4.Append(childExtents4); groupShapeProperties4.Append(transformGroup4); Shape shape12 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties12 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties16 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title Placeholder 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties12 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks11 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties12.Append(shapeLocks11); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties16 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape11 = new PlaceholderShape(){ Type = PlaceholderValues.Title }; applicationNonVisualDrawingProperties16.Append(placeholderShape11); nonVisualShapeProperties12.Append(nonVisualDrawingProperties16); nonVisualShapeProperties12.Append(nonVisualShapeDrawingProperties12); nonVisualShapeProperties12.Append(applicationNonVisualDrawingProperties16); ShapeProperties shapeProperties12 = new ShapeProperties(); A.Transform2D transform2D9 = new A.Transform2D(); A.Offset offset13 = new A.Offset(){ X = 457200L, Y = 274638L }; A.Extents extents13 = new A.Extents(){ Cx = 8229600L, Cy = 1143000L }; transform2D9.Append(offset13); transform2D9.Append(extents13); A.PresetGeometry presetGeometry7 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList7 = new A.AdjustValueList(); presetGeometry7.Append(adjustValueList7); shapeProperties12.Append(transform2D9); shapeProperties12.Append(presetGeometry7); TextBody textBody12 = new TextBody(); A.BodyProperties bodyProperties12 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.NormalAutoFit normalAutoFit2 = new A.NormalAutoFit(); bodyProperties12.Append(normalAutoFit2); A.ListStyle listStyle12 = new A.ListStyle(); A.Paragraph paragraph25 = new A.Paragraph(); A.Run run19 = new A.Run(); A.RunProperties runProperties22 = new A.RunProperties(){ Language = "en-US" }; runProperties22.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text22 = new A.Text(); text22.Text = "Click to edit Master title style"; run19.Append(runProperties22); run19.Append(text22); A.EndParagraphRunProperties endParagraphRunProperties13 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph25.Append(run19); paragraph25.Append(endParagraphRunProperties13); textBody12.Append(bodyProperties12); textBody12.Append(listStyle12); textBody12.Append(paragraph25); shape12.Append(nonVisualShapeProperties12); shape12.Append(shapeProperties12); shape12.Append(textBody12); Shape shape13 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties13 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties17 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Text Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties13 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks12 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties13.Append(shapeLocks12); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties17 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape12 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties17.Append(placeholderShape12); nonVisualShapeProperties13.Append(nonVisualDrawingProperties17); nonVisualShapeProperties13.Append(nonVisualShapeDrawingProperties13); nonVisualShapeProperties13.Append(applicationNonVisualDrawingProperties17); ShapeProperties shapeProperties13 = new ShapeProperties(); A.Transform2D transform2D10 = new A.Transform2D(); A.Offset offset14 = new A.Offset(){ X = 457200L, Y = 1600201L }; A.Extents extents14 = new A.Extents(){ Cx = 8229600L, Cy = 4525963L }; transform2D10.Append(offset14); transform2D10.Append(extents14); A.PresetGeometry presetGeometry8 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList8 = new A.AdjustValueList(); presetGeometry8.Append(adjustValueList8); shapeProperties13.Append(transform2D10); shapeProperties13.Append(presetGeometry8); TextBody textBody13 = new TextBody(); A.BodyProperties bodyProperties13 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false }; A.NormalAutoFit normalAutoFit3 = new A.NormalAutoFit(); bodyProperties13.Append(normalAutoFit3); A.ListStyle listStyle13 = new A.ListStyle(); A.Paragraph paragraph26 = new A.Paragraph(); A.ParagraphProperties paragraphProperties14 = new A.ParagraphProperties(){ Level = 0 }; A.Run run20 = new A.Run(); A.RunProperties runProperties23 = new A.RunProperties(){ Language = "en-US" }; runProperties23.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text23 = new A.Text(); text23.Text = "Click to edit Master text styles"; run20.Append(runProperties23); run20.Append(text23); paragraph26.Append(paragraphProperties14); paragraph26.Append(run20); A.Paragraph paragraph27 = new A.Paragraph(); A.ParagraphProperties paragraphProperties15 = new A.ParagraphProperties(){ Level = 1 }; A.Run run21 = new A.Run(); A.RunProperties runProperties24 = new A.RunProperties(){ Language = "en-US" }; runProperties24.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text24 = new A.Text(); text24.Text = "Second level"; run21.Append(runProperties24); run21.Append(text24); paragraph27.Append(paragraphProperties15); paragraph27.Append(run21); A.Paragraph paragraph28 = new A.Paragraph(); A.ParagraphProperties paragraphProperties16 = new A.ParagraphProperties(){ Level = 2 }; A.Run run22 = new A.Run(); A.RunProperties runProperties25 = new A.RunProperties(){ Language = "en-US" }; runProperties25.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text25 = new A.Text(); text25.Text = "Third level"; run22.Append(runProperties25); run22.Append(text25); paragraph28.Append(paragraphProperties16); paragraph28.Append(run22); A.Paragraph paragraph29 = new A.Paragraph(); A.ParagraphProperties paragraphProperties17 = new A.ParagraphProperties(){ Level = 3 }; A.Run run23 = new A.Run(); A.RunProperties runProperties26 = new A.RunProperties(){ Language = "en-US" }; runProperties26.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text26 = new A.Text(); text26.Text = "Fourth level"; run23.Append(runProperties26); run23.Append(text26); paragraph29.Append(paragraphProperties17); paragraph29.Append(run23); A.Paragraph paragraph30 = new A.Paragraph(); A.ParagraphProperties paragraphProperties18 = new A.ParagraphProperties(){ Level = 4 }; A.Run run24 = new A.Run(); A.RunProperties runProperties27 = new A.RunProperties(){ Language = "en-US" }; runProperties27.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text27 = new A.Text(); text27.Text = "Fifth level"; run24.Append(runProperties27); run24.Append(text27); A.EndParagraphRunProperties endParagraphRunProperties14 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph30.Append(paragraphProperties18); paragraph30.Append(run24); paragraph30.Append(endParagraphRunProperties14); textBody13.Append(bodyProperties13); textBody13.Append(listStyle13); textBody13.Append(paragraph26); textBody13.Append(paragraph27); textBody13.Append(paragraph28); textBody13.Append(paragraph29); textBody13.Append(paragraph30); shape13.Append(nonVisualShapeProperties13); shape13.Append(shapeProperties13); shape13.Append(textBody13); Shape shape14 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties14 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties18 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Date Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties14 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks13 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties14.Append(shapeLocks13); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties18 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape13 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)2U }; applicationNonVisualDrawingProperties18.Append(placeholderShape13); nonVisualShapeProperties14.Append(nonVisualDrawingProperties18); nonVisualShapeProperties14.Append(nonVisualShapeDrawingProperties14); nonVisualShapeProperties14.Append(applicationNonVisualDrawingProperties18); ShapeProperties shapeProperties14 = new ShapeProperties(); A.Transform2D transform2D11 = new A.Transform2D(); A.Offset offset15 = new A.Offset(){ X = 457200L, Y = 6356351L }; A.Extents extents15 = new A.Extents(){ Cx = 2133600L, Cy = 365125L }; transform2D11.Append(offset15); transform2D11.Append(extents15); A.PresetGeometry presetGeometry9 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList9 = new A.AdjustValueList(); presetGeometry9.Append(adjustValueList9); shapeProperties14.Append(transform2D11); shapeProperties14.Append(presetGeometry9); TextBody textBody14 = new TextBody(); A.BodyProperties bodyProperties14 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.ListStyle listStyle14 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties7 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left }; A.DefaultRunProperties defaultRunProperties32 = new A.DefaultRunProperties(){ FontSize = 1200 }; A.SolidFill solidFill34 = new A.SolidFill(); A.SchemeColor schemeColor46 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint16 = new A.Tint(){ Val = 75000 }; schemeColor46.Append(tint16); solidFill34.Append(schemeColor46); defaultRunProperties32.Append(solidFill34); level1ParagraphProperties7.Append(defaultRunProperties32); listStyle14.Append(level1ParagraphProperties7); A.Paragraph paragraph31 = new A.Paragraph(); A.Field field4 = new A.Field(){ Id = "{1A15D4F1-1D33-4170-8C9F-182CDE6BA6D1}", Type = "datetimeFigureOut" }; A.RunProperties runProperties28 = new A.RunProperties(){ Language = "en-US" }; runProperties28.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text28 = new A.Text(); text28.Text = "10/3/2012"; field4.Append(runProperties28); field4.Append(text28); A.EndParagraphRunProperties endParagraphRunProperties15 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph31.Append(field4); paragraph31.Append(endParagraphRunProperties15); textBody14.Append(bodyProperties14); textBody14.Append(listStyle14); textBody14.Append(paragraph31); shape14.Append(nonVisualShapeProperties14); shape14.Append(shapeProperties14); shape14.Append(textBody14); Shape shape15 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties15 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties19 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Footer Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties15 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks14 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties15.Append(shapeLocks14); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties19 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape14 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)3U }; applicationNonVisualDrawingProperties19.Append(placeholderShape14); nonVisualShapeProperties15.Append(nonVisualDrawingProperties19); nonVisualShapeProperties15.Append(nonVisualShapeDrawingProperties15); nonVisualShapeProperties15.Append(applicationNonVisualDrawingProperties19); ShapeProperties shapeProperties15 = new ShapeProperties(); A.Transform2D transform2D12 = new A.Transform2D(); A.Offset offset16 = new A.Offset(){ X = 3124200L, Y = 6356351L }; A.Extents extents16 = new A.Extents(){ Cx = 2895600L, Cy = 365125L }; transform2D12.Append(offset16); transform2D12.Append(extents16); A.PresetGeometry presetGeometry10 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList10 = new A.AdjustValueList(); presetGeometry10.Append(adjustValueList10); shapeProperties15.Append(transform2D12); shapeProperties15.Append(presetGeometry10); TextBody textBody15 = new TextBody(); A.BodyProperties bodyProperties15 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.ListStyle listStyle15 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties8 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Center }; A.DefaultRunProperties defaultRunProperties33 = new A.DefaultRunProperties(){ FontSize = 1200 }; A.SolidFill solidFill35 = new A.SolidFill(); A.SchemeColor schemeColor47 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint17 = new A.Tint(){ Val = 75000 }; schemeColor47.Append(tint17); solidFill35.Append(schemeColor47); defaultRunProperties33.Append(solidFill35); level1ParagraphProperties8.Append(defaultRunProperties33); listStyle15.Append(level1ParagraphProperties8); A.Paragraph paragraph32 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties16 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph32.Append(endParagraphRunProperties16); textBody15.Append(bodyProperties15); textBody15.Append(listStyle15); textBody15.Append(paragraph32); shape15.Append(nonVisualShapeProperties15); shape15.Append(shapeProperties15); shape15.Append(textBody15); Shape shape16 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties16 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties20 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Slide Number Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties16 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks15 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties16.Append(shapeLocks15); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties20 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape15 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)4U }; applicationNonVisualDrawingProperties20.Append(placeholderShape15); nonVisualShapeProperties16.Append(nonVisualDrawingProperties20); nonVisualShapeProperties16.Append(nonVisualShapeDrawingProperties16); nonVisualShapeProperties16.Append(applicationNonVisualDrawingProperties20); ShapeProperties shapeProperties16 = new ShapeProperties(); A.Transform2D transform2D13 = new A.Transform2D(); A.Offset offset17 = new A.Offset(){ X = 6553200L, Y = 6356351L }; A.Extents extents17 = new A.Extents(){ Cx = 2133600L, Cy = 365125L }; transform2D13.Append(offset17); transform2D13.Append(extents17); A.PresetGeometry presetGeometry11 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList11 = new A.AdjustValueList(); presetGeometry11.Append(adjustValueList11); shapeProperties16.Append(transform2D13); shapeProperties16.Append(presetGeometry11); TextBody textBody16 = new TextBody(); A.BodyProperties bodyProperties16 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.ListStyle listStyle16 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties9 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Right }; A.DefaultRunProperties defaultRunProperties34 = new A.DefaultRunProperties(){ FontSize = 1200 }; A.SolidFill solidFill36 = new A.SolidFill(); A.SchemeColor schemeColor48 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; A.Tint tint18 = new A.Tint(){ Val = 75000 }; schemeColor48.Append(tint18); solidFill36.Append(schemeColor48); defaultRunProperties34.Append(solidFill36); level1ParagraphProperties9.Append(defaultRunProperties34); listStyle16.Append(level1ParagraphProperties9); A.Paragraph paragraph33 = new A.Paragraph(); A.Field field5 = new A.Field(){ Id = "{9E0C3BFA-D4DA-4895-A0F6-B80859694A8D}", Type = "slidenum" }; A.RunProperties runProperties29 = new A.RunProperties(){ Language = "en-US" }; runProperties29.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text29 = new A.Text(); text29.Text = "‹#›"; field5.Append(runProperties29); field5.Append(text29); A.EndParagraphRunProperties endParagraphRunProperties17 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph33.Append(field5); paragraph33.Append(endParagraphRunProperties17); textBody16.Append(bodyProperties16); textBody16.Append(listStyle16); textBody16.Append(paragraph33); shape16.Append(nonVisualShapeProperties16); shape16.Append(shapeProperties16); shape16.Append(textBody16); shapeTree4.Append(nonVisualGroupShapeProperties4); shapeTree4.Append(groupShapeProperties4); shapeTree4.Append(shape12); shapeTree4.Append(shape13); shapeTree4.Append(shape14); shapeTree4.Append(shape15); shapeTree4.Append(shape16); CommonSlideDataExtensionList commonSlideDataExtensionList2 = new CommonSlideDataExtensionList(); CommonSlideDataExtension commonSlideDataExtension2 = new CommonSlideDataExtension(){ Uri = "{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}" }; P14.CreationId creationId2 = new P14.CreationId(){ Val = (UInt32Value)2970118228U }; creationId2.AddNamespaceDeclaration("p14", "http://schemas.microsoft.com/office/powerpoint/2010/main"); commonSlideDataExtension2.Append(creationId2); commonSlideDataExtensionList2.Append(commonSlideDataExtension2); commonSlideData4.Append(background2); commonSlideData4.Append(shapeTree4); commonSlideData4.Append(commonSlideDataExtensionList2); ColorMap colorMap2 = new ColorMap(){ Background1 = A.ColorSchemeIndexValues.Light1, Text1 = A.ColorSchemeIndexValues.Dark1, Background2 = A.ColorSchemeIndexValues.Light2, Text2 = A.ColorSchemeIndexValues.Dark2, Accent1 = A.ColorSchemeIndexValues.Accent1, Accent2 = A.ColorSchemeIndexValues.Accent2, Accent3 = A.ColorSchemeIndexValues.Accent3, Accent4 = A.ColorSchemeIndexValues.Accent4, Accent5 = A.ColorSchemeIndexValues.Accent5, Accent6 = A.ColorSchemeIndexValues.Accent6, Hyperlink = A.ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = A.ColorSchemeIndexValues.FollowedHyperlink }; SlideLayoutIdList slideLayoutIdList1 = new SlideLayoutIdList(); SlideLayoutId slideLayoutId1 = new SlideLayoutId(){ Id = (UInt32Value)2147483649U, RelationshipId = "rId1" }; SlideLayoutId slideLayoutId2 = new SlideLayoutId(){ Id = (UInt32Value)2147483650U, RelationshipId = "rId2" }; SlideLayoutId slideLayoutId3 = new SlideLayoutId(){ Id = (UInt32Value)2147483651U, RelationshipId = "rId3" }; SlideLayoutId slideLayoutId4 = new SlideLayoutId(){ Id = (UInt32Value)2147483652U, RelationshipId = "rId4" }; SlideLayoutId slideLayoutId5 = new SlideLayoutId(){ Id = (UInt32Value)2147483653U, RelationshipId = "rId5" }; SlideLayoutId slideLayoutId6 = new SlideLayoutId(){ Id = (UInt32Value)2147483654U, RelationshipId = "rId6" }; SlideLayoutId slideLayoutId7 = new SlideLayoutId(){ Id = (UInt32Value)2147483655U, RelationshipId = "rId7" }; SlideLayoutId slideLayoutId8 = new SlideLayoutId(){ Id = (UInt32Value)2147483656U, RelationshipId = "rId8" }; SlideLayoutId slideLayoutId9 = new SlideLayoutId(){ Id = (UInt32Value)2147483657U, RelationshipId = "rId9" }; SlideLayoutId slideLayoutId10 = new SlideLayoutId(){ Id = (UInt32Value)2147483658U, RelationshipId = "rId10" }; SlideLayoutId slideLayoutId11 = new SlideLayoutId(){ Id = (UInt32Value)2147483659U, RelationshipId = "rId11" }; slideLayoutIdList1.Append(slideLayoutId1); slideLayoutIdList1.Append(slideLayoutId2); slideLayoutIdList1.Append(slideLayoutId3); slideLayoutIdList1.Append(slideLayoutId4); slideLayoutIdList1.Append(slideLayoutId5); slideLayoutIdList1.Append(slideLayoutId6); slideLayoutIdList1.Append(slideLayoutId7); slideLayoutIdList1.Append(slideLayoutId8); slideLayoutIdList1.Append(slideLayoutId9); slideLayoutIdList1.Append(slideLayoutId10); slideLayoutIdList1.Append(slideLayoutId11); TextStyles textStyles1 = new TextStyles(); TitleStyle titleStyle1 = new TitleStyle(); A.Level1ParagraphProperties level1ParagraphProperties10 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Center, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore1 = new A.SpaceBefore(); A.SpacingPercent spacingPercent1 = new A.SpacingPercent(){ Val = 0 }; spaceBefore1.Append(spacingPercent1); A.NoBullet noBullet10 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties35 = new A.DefaultRunProperties(){ FontSize = 4400, Kerning = 1200 }; A.SolidFill solidFill37 = new A.SolidFill(); A.SchemeColor schemeColor49 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill37.Append(schemeColor49); A.LatinFont latinFont21 = new A.LatinFont(){ Typeface = "+mj-lt" }; A.EastAsianFont eastAsianFont21 = new A.EastAsianFont(){ Typeface = "+mj-ea" }; A.ComplexScriptFont complexScriptFont21 = new A.ComplexScriptFont(){ Typeface = "+mj-cs" }; defaultRunProperties35.Append(solidFill37); defaultRunProperties35.Append(latinFont21); defaultRunProperties35.Append(eastAsianFont21); defaultRunProperties35.Append(complexScriptFont21); level1ParagraphProperties10.Append(spaceBefore1); level1ParagraphProperties10.Append(noBullet10); level1ParagraphProperties10.Append(defaultRunProperties35); titleStyle1.Append(level1ParagraphProperties10); BodyStyle bodyStyle1 = new BodyStyle(); A.Level1ParagraphProperties level1ParagraphProperties11 = new A.Level1ParagraphProperties(){ LeftMargin = 342900, Indent = -342900, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore2 = new A.SpaceBefore(); A.SpacingPercent spacingPercent2 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore2.Append(spacingPercent2); A.BulletFont bulletFont1 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet1 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties36 = new A.DefaultRunProperties(){ FontSize = 3200, Kerning = 1200 }; A.SolidFill solidFill38 = new A.SolidFill(); A.SchemeColor schemeColor50 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill38.Append(schemeColor50); A.LatinFont latinFont22 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont22 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont22 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties36.Append(solidFill38); defaultRunProperties36.Append(latinFont22); defaultRunProperties36.Append(eastAsianFont22); defaultRunProperties36.Append(complexScriptFont22); level1ParagraphProperties11.Append(spaceBefore2); level1ParagraphProperties11.Append(bulletFont1); level1ParagraphProperties11.Append(characterBullet1); level1ParagraphProperties11.Append(defaultRunProperties36); A.Level2ParagraphProperties level2ParagraphProperties4 = new A.Level2ParagraphProperties(){ LeftMargin = 742950, Indent = -285750, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore3 = new A.SpaceBefore(); A.SpacingPercent spacingPercent3 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore3.Append(spacingPercent3); A.BulletFont bulletFont2 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet2 = new A.CharacterBullet(){ Char = "–" }; A.DefaultRunProperties defaultRunProperties37 = new A.DefaultRunProperties(){ FontSize = 2800, Kerning = 1200 }; A.SolidFill solidFill39 = new A.SolidFill(); A.SchemeColor schemeColor51 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill39.Append(schemeColor51); A.LatinFont latinFont23 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont23 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont23 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties37.Append(solidFill39); defaultRunProperties37.Append(latinFont23); defaultRunProperties37.Append(eastAsianFont23); defaultRunProperties37.Append(complexScriptFont23); level2ParagraphProperties4.Append(spaceBefore3); level2ParagraphProperties4.Append(bulletFont2); level2ParagraphProperties4.Append(characterBullet2); level2ParagraphProperties4.Append(defaultRunProperties37); A.Level3ParagraphProperties level3ParagraphProperties4 = new A.Level3ParagraphProperties(){ LeftMargin = 1143000, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore4 = new A.SpaceBefore(); A.SpacingPercent spacingPercent4 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore4.Append(spacingPercent4); A.BulletFont bulletFont3 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet3 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties38 = new A.DefaultRunProperties(){ FontSize = 2400, Kerning = 1200 }; A.SolidFill solidFill40 = new A.SolidFill(); A.SchemeColor schemeColor52 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill40.Append(schemeColor52); A.LatinFont latinFont24 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont24 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont24 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties38.Append(solidFill40); defaultRunProperties38.Append(latinFont24); defaultRunProperties38.Append(eastAsianFont24); defaultRunProperties38.Append(complexScriptFont24); level3ParagraphProperties4.Append(spaceBefore4); level3ParagraphProperties4.Append(bulletFont3); level3ParagraphProperties4.Append(characterBullet3); level3ParagraphProperties4.Append(defaultRunProperties38); A.Level4ParagraphProperties level4ParagraphProperties4 = new A.Level4ParagraphProperties(){ LeftMargin = 1600200, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore5 = new A.SpaceBefore(); A.SpacingPercent spacingPercent5 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore5.Append(spacingPercent5); A.BulletFont bulletFont4 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet4 = new A.CharacterBullet(){ Char = "–" }; A.DefaultRunProperties defaultRunProperties39 = new A.DefaultRunProperties(){ FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill41 = new A.SolidFill(); A.SchemeColor schemeColor53 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill41.Append(schemeColor53); A.LatinFont latinFont25 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont25 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont25 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties39.Append(solidFill41); defaultRunProperties39.Append(latinFont25); defaultRunProperties39.Append(eastAsianFont25); defaultRunProperties39.Append(complexScriptFont25); level4ParagraphProperties4.Append(spaceBefore5); level4ParagraphProperties4.Append(bulletFont4); level4ParagraphProperties4.Append(characterBullet4); level4ParagraphProperties4.Append(defaultRunProperties39); A.Level5ParagraphProperties level5ParagraphProperties4 = new A.Level5ParagraphProperties(){ LeftMargin = 2057400, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore6 = new A.SpaceBefore(); A.SpacingPercent spacingPercent6 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore6.Append(spacingPercent6); A.BulletFont bulletFont5 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet5 = new A.CharacterBullet(){ Char = "»" }; A.DefaultRunProperties defaultRunProperties40 = new A.DefaultRunProperties(){ FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill42 = new A.SolidFill(); A.SchemeColor schemeColor54 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill42.Append(schemeColor54); A.LatinFont latinFont26 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont26 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont26 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties40.Append(solidFill42); defaultRunProperties40.Append(latinFont26); defaultRunProperties40.Append(eastAsianFont26); defaultRunProperties40.Append(complexScriptFont26); level5ParagraphProperties4.Append(spaceBefore6); level5ParagraphProperties4.Append(bulletFont5); level5ParagraphProperties4.Append(characterBullet5); level5ParagraphProperties4.Append(defaultRunProperties40); A.Level6ParagraphProperties level6ParagraphProperties4 = new A.Level6ParagraphProperties(){ LeftMargin = 2514600, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore7 = new A.SpaceBefore(); A.SpacingPercent spacingPercent7 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore7.Append(spacingPercent7); A.BulletFont bulletFont6 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet6 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties41 = new A.DefaultRunProperties(){ FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill43 = new A.SolidFill(); A.SchemeColor schemeColor55 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill43.Append(schemeColor55); A.LatinFont latinFont27 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont27 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont27 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties41.Append(solidFill43); defaultRunProperties41.Append(latinFont27); defaultRunProperties41.Append(eastAsianFont27); defaultRunProperties41.Append(complexScriptFont27); level6ParagraphProperties4.Append(spaceBefore7); level6ParagraphProperties4.Append(bulletFont6); level6ParagraphProperties4.Append(characterBullet6); level6ParagraphProperties4.Append(defaultRunProperties41); A.Level7ParagraphProperties level7ParagraphProperties4 = new A.Level7ParagraphProperties(){ LeftMargin = 2971800, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore8 = new A.SpaceBefore(); A.SpacingPercent spacingPercent8 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore8.Append(spacingPercent8); A.BulletFont bulletFont7 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet7 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties42 = new A.DefaultRunProperties(){ FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill44 = new A.SolidFill(); A.SchemeColor schemeColor56 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill44.Append(schemeColor56); A.LatinFont latinFont28 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont28 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont28 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties42.Append(solidFill44); defaultRunProperties42.Append(latinFont28); defaultRunProperties42.Append(eastAsianFont28); defaultRunProperties42.Append(complexScriptFont28); level7ParagraphProperties4.Append(spaceBefore8); level7ParagraphProperties4.Append(bulletFont7); level7ParagraphProperties4.Append(characterBullet7); level7ParagraphProperties4.Append(defaultRunProperties42); A.Level8ParagraphProperties level8ParagraphProperties4 = new A.Level8ParagraphProperties(){ LeftMargin = 3429000, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore9 = new A.SpaceBefore(); A.SpacingPercent spacingPercent9 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore9.Append(spacingPercent9); A.BulletFont bulletFont8 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet8 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties43 = new A.DefaultRunProperties(){ FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill45 = new A.SolidFill(); A.SchemeColor schemeColor57 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill45.Append(schemeColor57); A.LatinFont latinFont29 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont29 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont29 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties43.Append(solidFill45); defaultRunProperties43.Append(latinFont29); defaultRunProperties43.Append(eastAsianFont29); defaultRunProperties43.Append(complexScriptFont29); level8ParagraphProperties4.Append(spaceBefore9); level8ParagraphProperties4.Append(bulletFont8); level8ParagraphProperties4.Append(characterBullet8); level8ParagraphProperties4.Append(defaultRunProperties43); A.Level9ParagraphProperties level9ParagraphProperties4 = new A.Level9ParagraphProperties(){ LeftMargin = 3886200, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore10 = new A.SpaceBefore(); A.SpacingPercent spacingPercent10 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore10.Append(spacingPercent10); A.BulletFont bulletFont9 = new A.BulletFont(){ Typeface = "Arial", PitchFamily = 34, CharacterSet = 0 }; A.CharacterBullet characterBullet9 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties44 = new A.DefaultRunProperties(){ FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill46 = new A.SolidFill(); A.SchemeColor schemeColor58 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill46.Append(schemeColor58); A.LatinFont latinFont30 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont30 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont30 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties44.Append(solidFill46); defaultRunProperties44.Append(latinFont30); defaultRunProperties44.Append(eastAsianFont30); defaultRunProperties44.Append(complexScriptFont30); level9ParagraphProperties4.Append(spaceBefore10); level9ParagraphProperties4.Append(bulletFont9); level9ParagraphProperties4.Append(characterBullet9); level9ParagraphProperties4.Append(defaultRunProperties44); bodyStyle1.Append(level1ParagraphProperties11); bodyStyle1.Append(level2ParagraphProperties4); bodyStyle1.Append(level3ParagraphProperties4); bodyStyle1.Append(level4ParagraphProperties4); bodyStyle1.Append(level5ParagraphProperties4); bodyStyle1.Append(level6ParagraphProperties4); bodyStyle1.Append(level7ParagraphProperties4); bodyStyle1.Append(level8ParagraphProperties4); bodyStyle1.Append(level9ParagraphProperties4); OtherStyle otherStyle1 = new OtherStyle(); A.DefaultParagraphProperties defaultParagraphProperties2 = new A.DefaultParagraphProperties(); A.DefaultRunProperties defaultRunProperties45 = new A.DefaultRunProperties(){ Language = "en-US" }; defaultParagraphProperties2.Append(defaultRunProperties45); A.Level1ParagraphProperties level1ParagraphProperties12 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties46 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill47 = new A.SolidFill(); A.SchemeColor schemeColor59 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill47.Append(schemeColor59); A.LatinFont latinFont31 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont31 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont31 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties46.Append(solidFill47); defaultRunProperties46.Append(latinFont31); defaultRunProperties46.Append(eastAsianFont31); defaultRunProperties46.Append(complexScriptFont31); level1ParagraphProperties12.Append(defaultRunProperties46); A.Level2ParagraphProperties level2ParagraphProperties5 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties47 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill48 = new A.SolidFill(); A.SchemeColor schemeColor60 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill48.Append(schemeColor60); A.LatinFont latinFont32 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont32 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont32 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties47.Append(solidFill48); defaultRunProperties47.Append(latinFont32); defaultRunProperties47.Append(eastAsianFont32); defaultRunProperties47.Append(complexScriptFont32); level2ParagraphProperties5.Append(defaultRunProperties47); A.Level3ParagraphProperties level3ParagraphProperties5 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties48 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill49 = new A.SolidFill(); A.SchemeColor schemeColor61 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill49.Append(schemeColor61); A.LatinFont latinFont33 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont33 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont33 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties48.Append(solidFill49); defaultRunProperties48.Append(latinFont33); defaultRunProperties48.Append(eastAsianFont33); defaultRunProperties48.Append(complexScriptFont33); level3ParagraphProperties5.Append(defaultRunProperties48); A.Level4ParagraphProperties level4ParagraphProperties5 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties49 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill50 = new A.SolidFill(); A.SchemeColor schemeColor62 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill50.Append(schemeColor62); A.LatinFont latinFont34 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont34 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont34 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties49.Append(solidFill50); defaultRunProperties49.Append(latinFont34); defaultRunProperties49.Append(eastAsianFont34); defaultRunProperties49.Append(complexScriptFont34); level4ParagraphProperties5.Append(defaultRunProperties49); A.Level5ParagraphProperties level5ParagraphProperties5 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties50 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill51 = new A.SolidFill(); A.SchemeColor schemeColor63 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill51.Append(schemeColor63); A.LatinFont latinFont35 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont35 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont35 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties50.Append(solidFill51); defaultRunProperties50.Append(latinFont35); defaultRunProperties50.Append(eastAsianFont35); defaultRunProperties50.Append(complexScriptFont35); level5ParagraphProperties5.Append(defaultRunProperties50); A.Level6ParagraphProperties level6ParagraphProperties5 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties51 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill52 = new A.SolidFill(); A.SchemeColor schemeColor64 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill52.Append(schemeColor64); A.LatinFont latinFont36 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont36 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont36 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties51.Append(solidFill52); defaultRunProperties51.Append(latinFont36); defaultRunProperties51.Append(eastAsianFont36); defaultRunProperties51.Append(complexScriptFont36); level6ParagraphProperties5.Append(defaultRunProperties51); A.Level7ParagraphProperties level7ParagraphProperties5 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties52 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill53 = new A.SolidFill(); A.SchemeColor schemeColor65 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill53.Append(schemeColor65); A.LatinFont latinFont37 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont37 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont37 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties52.Append(solidFill53); defaultRunProperties52.Append(latinFont37); defaultRunProperties52.Append(eastAsianFont37); defaultRunProperties52.Append(complexScriptFont37); level7ParagraphProperties5.Append(defaultRunProperties52); A.Level8ParagraphProperties level8ParagraphProperties5 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties53 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill54 = new A.SolidFill(); A.SchemeColor schemeColor66 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill54.Append(schemeColor66); A.LatinFont latinFont38 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont38 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont38 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties53.Append(solidFill54); defaultRunProperties53.Append(latinFont38); defaultRunProperties53.Append(eastAsianFont38); defaultRunProperties53.Append(complexScriptFont38); level8ParagraphProperties5.Append(defaultRunProperties53); A.Level9ParagraphProperties level9ParagraphProperties5 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties54 = new A.DefaultRunProperties(){ FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill55 = new A.SolidFill(); A.SchemeColor schemeColor67 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill55.Append(schemeColor67); A.LatinFont latinFont39 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont39 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont39 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties54.Append(solidFill55); defaultRunProperties54.Append(latinFont39); defaultRunProperties54.Append(eastAsianFont39); defaultRunProperties54.Append(complexScriptFont39); level9ParagraphProperties5.Append(defaultRunProperties54); otherStyle1.Append(defaultParagraphProperties2); otherStyle1.Append(level1ParagraphProperties12); otherStyle1.Append(level2ParagraphProperties5); otherStyle1.Append(level3ParagraphProperties5); otherStyle1.Append(level4ParagraphProperties5); otherStyle1.Append(level5ParagraphProperties5); otherStyle1.Append(level6ParagraphProperties5); otherStyle1.Append(level7ParagraphProperties5); otherStyle1.Append(level8ParagraphProperties5); otherStyle1.Append(level9ParagraphProperties5); textStyles1.Append(titleStyle1); textStyles1.Append(bodyStyle1); textStyles1.Append(otherStyle1); slideMaster1.Append(commonSlideData4); slideMaster1.Append(colorMap2); slideMaster1.Append(slideLayoutIdList1); slideMaster1.Append(textStyles1); slideMasterPart1.SlideMaster = slideMaster1; }
private void DrawImage(Graphics g) { Image image; if (this.Enabled) { image = this.ImageEnabled; } else { if (ImageDisabled != null) { image = this.ImageDisabled; } else { image = this.ImageEnabled; } } ImageAttributes imageAttr = null; if (image == null) { return; } if (m_monochrom) { imageAttr = new ImageAttributes(); // transform the monochrom image // white -> BackColor // black -> ForeColor ColorMap[] myColorMap = new ColorMap[2]; myColorMap[0] = new ColorMap(); myColorMap[0].OldColor = Color.White; myColorMap[0].NewColor = Color.Transparent; myColorMap[1] = new ColorMap(); myColorMap[1].OldColor = Color.Black; myColorMap[1].NewColor = this.ForeColor; imageAttr.SetRemapTable(myColorMap); } Rectangle rect = new Rectangle(0, 0, image.Width, image.Height); if ((! Enabled) && (ImageDisabled == null)) { using (Bitmap bitmapMono = new Bitmap(image, ClientRectangle.Size)) { if (imageAttr != null) { using (Graphics gMono = Graphics.FromImage(bitmapMono)) { gMono.DrawImage(image, new Point[3] {new Point(0, 0), new Point(image.Width - 1, 0), new Point(0, image.Height - 1)}, rect, GraphicsUnit.Pixel, imageAttr); } } ControlPaint.DrawImageDisabled(g, bitmapMono, 0, 0, this.BackColor); } } else { // Three points provided are upper-left, upper-right and // lower-left of the destination parallelogram. Point[] pts = new Point[3](); if (Enabled && m_mouseOver && m_mouseCapture) { pts[0].X = 1; pts[0].Y = 1; } else { pts[0].X = 0; pts[0].Y = 0; } pts[1].X = pts[0].X + ClientRectangle.Width; pts[1].Y = pts[0].Y; pts[2].X = pts[0].X; pts[2].Y = pts[1].Y + ClientRectangle.Height; if (imageAttr == null) { g.DrawImage(image, pts, rect, GraphicsUnit.Pixel); } else { g.DrawImage(image, pts, rect, GraphicsUnit.Pixel, imageAttr); } } }
public uint[,] MakeImage(ColorMap colorMap) { uint[,] image = new uint[Fragment.BitmapSize, Fragment.BitmapSize]; for(int y = 0; y < Fragment.BitmapSize; y++) { for(int x = 0; x < Fragment.BitmapSize; x++) { uint k = 0; //k = 0x000F00 * (uint)(depth + 4); //k = 0x000100 * (uint)maxColorDifference; // if (x % 2 == 0 || y % 2 == 0) { // k = 0x7F0000; // } // if (x == 0 && y == 0) { // *ptr = 0xFF0000; ptr++; continue; // } if (x == Fragment.FragmentSize) { image[x,y] = image[x-1,y]; } else if (y == Fragment.FragmentSize) { image[x,y] = image[x,y-1]; } else { image[x,y] = k + (uint)GetAntiAliasedColor(colorMap, x, y, 3).ToArgb(); } } } return image; }
/// <summary> /// 图片等比缩放 /// </summary> /// <remarks>吴剑 2011-01-21</remarks> /// <param name="postedFile">原图HttpPostedFile对象</param> /// <param name="savePath">缩略图存放地址</param> /// <param name="targetWidth">指定的最大宽度</param> /// <param name="targetHeight">指定的最大高度</param> /// <param name="watermarkText">水印文字(为""表示不使用水印)</param> /// <param name="watermarkImage">水印图片路径(为""表示不使用水印)</param> public static void ZoomAuto(System.Web.HttpPostedFileBase postedFile, string savePath, System.Double targetWidth, System.Double targetHeight, string watermarkText, string watermarkImage) { //创建目录 string dir = Path.GetDirectoryName(savePath); if (!Directory.Exists(dir)) Directory.CreateDirectory(dir); //原始图片(获取原始图片创建对象,并使用流中嵌入的颜色管理信息) System.Drawing.Image initImage = System.Drawing.Image.FromStream(postedFile.InputStream, true); //原图宽高均小于模版,不作处理,直接保存 if (initImage.Width <= targetWidth && initImage.Height <= targetHeight) { //文字水印 if (watermarkText != "") { using (System.Drawing.Graphics gWater = System.Drawing.Graphics.FromImage(initImage)) { System.Drawing.Font fontWater = new Font("黑体", 10); System.Drawing.Brush brushWater = new SolidBrush(Color.White); gWater.DrawString(watermarkText, fontWater, brushWater, 10, 10); gWater.Dispose(); } } //透明图片水印 if (watermarkImage != "") { if (File.Exists(watermarkImage)) { //获取水印图片 using (System.Drawing.Image wrImage = System.Drawing.Image.FromFile(watermarkImage)) { //水印绘制条件:原始图片宽高均大于或等于水印图片 if (initImage.Width >= wrImage.Width && initImage.Height >= wrImage.Height) { Graphics gWater = Graphics.FromImage(initImage); //透明属性 ImageAttributes imgAttributes = new ImageAttributes(); ColorMap colorMap = new ColorMap(); colorMap.OldColor = Color.FromArgb(255, 0, 255, 0); colorMap.NewColor = Color.FromArgb(0, 0, 0, 0); ColorMap[] remapTable = { colorMap }; imgAttributes.SetRemapTable(remapTable, ColorAdjustType.Bitmap); float[][] colorMatrixElements = { new float[] {1.0f, 0.0f, 0.0f, 0.0f, 0.0f}, new float[] {0.0f, 1.0f, 0.0f, 0.0f, 0.0f}, new float[] {0.0f, 0.0f, 1.0f, 0.0f, 0.0f}, new float[] {0.0f, 0.0f, 0.0f, 0.5f, 0.0f},//透明度:0.5 new float[] {0.0f, 0.0f, 0.0f, 0.0f, 1.0f} }; ColorMatrix wmColorMatrix = new ColorMatrix(colorMatrixElements); imgAttributes.SetColorMatrix(wmColorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap); gWater.DrawImage(wrImage, new Rectangle(initImage.Width - wrImage.Width, initImage.Height - wrImage.Height, wrImage.Width, wrImage.Height), 0, 0, wrImage.Width, wrImage.Height, GraphicsUnit.Pixel, imgAttributes); gWater.Dispose(); } wrImage.Dispose(); } } } //保存 initImage.Save(savePath, System.Drawing.Imaging.ImageFormat.Jpeg); } else { //缩略图宽、高计算 double newWidth = initImage.Width; double newHeight = initImage.Height; //宽大于高或宽等于高(横图或正方) if (initImage.Width > initImage.Height || initImage.Width == initImage.Height) { //如果宽大于模版 if (initImage.Width > targetWidth) { //宽按模版,高按比例缩放 newWidth = targetWidth; newHeight = initImage.Height * (targetWidth / initImage.Width); } } //高大于宽(竖图) else { //如果高大于模版 if (initImage.Height > targetHeight) { //高按模版,宽按比例缩放 newHeight = targetHeight; newWidth = initImage.Width * (targetHeight / initImage.Height); } } //生成新图 //新建一个bmp图片 System.Drawing.Image newImage = new System.Drawing.Bitmap((int)newWidth, (int)newHeight); //新建一个画板 System.Drawing.Graphics newG = System.Drawing.Graphics.FromImage(newImage); //设置质量 newG.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; newG.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; //置背景色 newG.Clear(Color.White); //画图 newG.DrawImage(initImage, new System.Drawing.Rectangle(0, 0, newImage.Width, newImage.Height), new System.Drawing.Rectangle(0, 0, initImage.Width, initImage.Height), System.Drawing.GraphicsUnit.Pixel); //文字水印 if (watermarkText != "") { using (System.Drawing.Graphics gWater = System.Drawing.Graphics.FromImage(newImage)) { System.Drawing.Font fontWater = new Font("宋体", 10); System.Drawing.Brush brushWater = new SolidBrush(Color.White); gWater.DrawString(watermarkText, fontWater, brushWater, 10, 10); gWater.Dispose(); } } //透明图片水印 if (watermarkImage != "") { if (File.Exists(watermarkImage)) { //获取水印图片 using (System.Drawing.Image wrImage = System.Drawing.Image.FromFile(watermarkImage)) { //水印绘制条件:原始图片宽高均大于或等于水印图片 if (newImage.Width >= wrImage.Width && newImage.Height >= wrImage.Height) { Graphics gWater = Graphics.FromImage(newImage); //透明属性 ImageAttributes imgAttributes = new ImageAttributes(); ColorMap colorMap = new ColorMap(); colorMap.OldColor = Color.FromArgb(255, 0, 255, 0); colorMap.NewColor = Color.FromArgb(0, 0, 0, 0); ColorMap[] remapTable = { colorMap }; imgAttributes.SetRemapTable(remapTable, ColorAdjustType.Bitmap); float[][] colorMatrixElements = { new float[] {1.0f, 0.0f, 0.0f, 0.0f, 0.0f}, new float[] {0.0f, 1.0f, 0.0f, 0.0f, 0.0f}, new float[] {0.0f, 0.0f, 1.0f, 0.0f, 0.0f}, new float[] {0.0f, 0.0f, 0.0f, 0.5f, 0.0f},//透明度:0.5 new float[] {0.0f, 0.0f, 0.0f, 0.0f, 1.0f} }; ColorMatrix wmColorMatrix = new ColorMatrix(colorMatrixElements); imgAttributes.SetColorMatrix(wmColorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap); gWater.DrawImage(wrImage, new Rectangle(newImage.Width - wrImage.Width, newImage.Height - wrImage.Height, wrImage.Width, wrImage.Height), 0, 0, wrImage.Width, wrImage.Height, GraphicsUnit.Pixel, imgAttributes); gWater.Dispose(); } wrImage.Dispose(); } } } //保存缩略图 newImage.Save(savePath, System.Drawing.Imaging.ImageFormat.Jpeg); //释放资源 newG.Dispose(); newImage.Dispose(); initImage.Dispose(); } }
private static void ApplyCurveInplace(ColorMap<ushort> map, ushort[][] curve) { Parallel.For(0, map.Height, y => { var pix = map.GetRow(y); for (var x = 0; x < map.Width; x++) { pix.SetAndMoveNext(curve[0][pix.R], curve[1][pix.G], curve[2][pix.B]); } }); }
public VisualRecognitionMap(String mapLocation, ColorMap colorMap) : this(mapLocation, colorMap, Size.Empty) { }
private void InitializeColor() { colorMap = new ColorMap(); colorMap.Input = this.unfilteredYearSliceDataTransformer.GetDataCube(); colorMap.Index = choroplethMapSelectedIndex; //colorMap.AddColorMapPart(new LinearRgbColorMapPart(Color.CadetBlue,Color.GhostWhite)); //colorMap.AddColorMapPart(new LinearRgbColorMapPart(Color.GhostWhite,Color.Red)); colorMap.AddColorMapPart(new LinearRgbColorMapPart(Color.Blue,Color.LightYellow)); colorMap.AddColorMapPart(new LinearRgbColorMapPart(Color.LightYellow,Color.Red)); colorMap.NaNColor = Color.Black; //colorMap.AddColorMapPart(new LinearHsvColorMapPart(200,40,0.1f,0.5f)); }
public int GetMaxColorDifference(ColorMap colorMap) { int minR, minG, minB; int maxR, maxG, maxB; minR = minG = minB = 256; maxR = maxG = maxB = 0; for(int y = 0; y < Fragment.FragmentSize; y += 1) { for(int x = 0; x < Fragment.FragmentSize; x += 1) { ColorIndex index = GetColorIndex(x, y); Color color = colorMap.GetColorFromIndex(index); minR = Math.Min(minR, color.R); minG = Math.Min(minG, color.G); minB = Math.Min(minB, color.B); maxR = Math.Max(maxR, color.R); maxG = Math.Max(maxG, color.G); maxB = Math.Max(maxB, color.B); } } return Math.Max(maxR - minR, Math.Max(maxG - minG, maxB - minB)); }
public Color GetColor(ColorMap colorMap, int x, int y) { return colorMap.GetColorFromIndex(GetColorIndex(x, y)); }
// Generates content of notesMasterPart1. private void GenerateNotesMasterPart1Content(NotesMasterPart notesMasterPart1) { NotesMaster notesMaster1 = new NotesMaster(); notesMaster1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); notesMaster1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); notesMaster1.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData1 = new CommonSlideData(); Background background1 = new Background(); BackgroundStyleReference backgroundStyleReference1 = new BackgroundStyleReference(){ Index = (UInt32Value)1002U }; A.SchemeColor schemeColor10 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; backgroundStyleReference1.Append(schemeColor10); background1.Append(backgroundStyleReference1); ShapeTree shapeTree1 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties1 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties1 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties1 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties1 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties1.Append(nonVisualDrawingProperties1); nonVisualGroupShapeProperties1.Append(nonVisualGroupShapeDrawingProperties1); nonVisualGroupShapeProperties1.Append(applicationNonVisualDrawingProperties1); GroupShapeProperties groupShapeProperties1 = new GroupShapeProperties(); A.TransformGroup transformGroup1 = new A.TransformGroup(); A.Offset offset1 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents1 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset1 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents1 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup1.Append(offset1); transformGroup1.Append(extents1); transformGroup1.Append(childOffset1); transformGroup1.Append(childExtents1); groupShapeProperties1.Append(transformGroup1); Shape shape1 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties1 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties2 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Header Placeholder 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties1 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks1 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties1.Append(shapeLocks1); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties2 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape1 = new PlaceholderShape(){ Type = PlaceholderValues.Header, Size = PlaceholderSizeValues.Quarter }; applicationNonVisualDrawingProperties2.Append(placeholderShape1); nonVisualShapeProperties1.Append(nonVisualDrawingProperties2); nonVisualShapeProperties1.Append(nonVisualShapeDrawingProperties1); nonVisualShapeProperties1.Append(applicationNonVisualDrawingProperties2); ShapeProperties shapeProperties1 = new ShapeProperties(); A.Transform2D transform2D1 = new A.Transform2D(); A.Offset offset2 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents2 = new A.Extents(){ Cx = 3962400L, Cy = 342900L }; transform2D1.Append(offset2); transform2D1.Append(extents2); A.PresetGeometry presetGeometry1 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList1 = new A.AdjustValueList(); presetGeometry1.Append(adjustValueList1); shapeProperties1.Append(transform2D1); shapeProperties1.Append(presetGeometry1); TextBody textBody1 = new TextBody(); A.BodyProperties bodyProperties1 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false }; A.ListStyle listStyle1 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties2 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left }; A.DefaultRunProperties defaultRunProperties11 = new A.DefaultRunProperties(){ FontSize = 1200 }; level1ParagraphProperties2.Append(defaultRunProperties11); listStyle1.Append(level1ParagraphProperties2); A.Paragraph paragraph1 = new A.Paragraph(); A.Run run1 = new A.Run(); A.RunProperties runProperties1 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties1.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text1 = new A.Text(); text1.Text = "Adding Header to Notes "; run1.Append(runProperties1); run1.Append(text1); A.Run run2 = new A.Run(); A.RunProperties runProperties2 = new A.RunProperties(){ Language = "en-US", Dirty = false, SpellingError = true }; runProperties2.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text2 = new A.Text(); text2.Text = "MAster"; run2.Append(runProperties2); run2.Append(text2); A.EndParagraphRunProperties endParagraphRunProperties1 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false }; paragraph1.Append(run1); paragraph1.Append(run2); paragraph1.Append(endParagraphRunProperties1); textBody1.Append(bodyProperties1); textBody1.Append(listStyle1); textBody1.Append(paragraph1); shape1.Append(nonVisualShapeProperties1); shape1.Append(shapeProperties1); shape1.Append(textBody1); Shape shape2 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties2 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties3 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Date Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties2 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks2 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties2.Append(shapeLocks2); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties3 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape2 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties3.Append(placeholderShape2); nonVisualShapeProperties2.Append(nonVisualDrawingProperties3); nonVisualShapeProperties2.Append(nonVisualShapeDrawingProperties2); nonVisualShapeProperties2.Append(applicationNonVisualDrawingProperties3); ShapeProperties shapeProperties2 = new ShapeProperties(); A.Transform2D transform2D2 = new A.Transform2D(); A.Offset offset3 = new A.Offset(){ X = 5179484L, Y = 0L }; A.Extents extents3 = new A.Extents(){ Cx = 3962400L, Cy = 342900L }; transform2D2.Append(offset3); transform2D2.Append(extents3); A.PresetGeometry presetGeometry2 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList2 = new A.AdjustValueList(); presetGeometry2.Append(adjustValueList2); shapeProperties2.Append(transform2D2); shapeProperties2.Append(presetGeometry2); TextBody textBody2 = new TextBody(); A.BodyProperties bodyProperties2 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false }; A.ListStyle listStyle2 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties3 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Right }; A.DefaultRunProperties defaultRunProperties12 = new A.DefaultRunProperties(){ FontSize = 1200 }; level1ParagraphProperties3.Append(defaultRunProperties12); listStyle2.Append(level1ParagraphProperties3); A.Paragraph paragraph2 = new A.Paragraph(); A.Field field1 = new A.Field(){ Id = "{CA3F9B49-9B0F-4F41-BDD8-B26D6525A1C4}", Type = "datetimeFigureOut" }; A.RunProperties runProperties3 = new A.RunProperties(){ Language = "en-US" }; runProperties3.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text3 = new A.Text(); text3.Text = "10/3/2012"; field1.Append(runProperties3); field1.Append(text3); A.EndParagraphRunProperties endParagraphRunProperties2 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph2.Append(field1); paragraph2.Append(endParagraphRunProperties2); textBody2.Append(bodyProperties2); textBody2.Append(listStyle2); textBody2.Append(paragraph2); shape2.Append(nonVisualShapeProperties2); shape2.Append(shapeProperties2); shape2.Append(textBody2); Shape shape3 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties3 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties4 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Slide Image Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties3 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks3 = new A.ShapeLocks(){ NoGrouping = true, NoRotation = true, NoChangeAspect = true }; nonVisualShapeDrawingProperties3.Append(shapeLocks3); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties4 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape3 = new PlaceholderShape(){ Type = PlaceholderValues.SlideImage, Index = (UInt32Value)2U }; applicationNonVisualDrawingProperties4.Append(placeholderShape3); nonVisualShapeProperties3.Append(nonVisualDrawingProperties4); nonVisualShapeProperties3.Append(nonVisualShapeDrawingProperties3); nonVisualShapeProperties3.Append(applicationNonVisualDrawingProperties4); ShapeProperties shapeProperties3 = new ShapeProperties(); A.Transform2D transform2D3 = new A.Transform2D(); A.Offset offset4 = new A.Offset(){ X = 2857500L, Y = 514350L }; A.Extents extents4 = new A.Extents(){ Cx = 3429000L, Cy = 2571750L }; transform2D3.Append(offset4); transform2D3.Append(extents4); A.PresetGeometry presetGeometry3 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList3 = new A.AdjustValueList(); presetGeometry3.Append(adjustValueList3); A.NoFill noFill1 = new A.NoFill(); A.Outline outline1 = new A.Outline(){ Width = 12700 }; A.SolidFill solidFill10 = new A.SolidFill(); A.PresetColor presetColor1 = new A.PresetColor(){ Val = A.PresetColorValues.Black }; solidFill10.Append(presetColor1); outline1.Append(solidFill10); shapeProperties3.Append(transform2D3); shapeProperties3.Append(presetGeometry3); shapeProperties3.Append(noFill1); shapeProperties3.Append(outline1); TextBody textBody3 = new TextBody(); A.BodyProperties bodyProperties3 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.ListStyle listStyle3 = new A.ListStyle(); A.Paragraph paragraph3 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties3 = new A.EndParagraphRunProperties(){ Language = "en-US" }; paragraph3.Append(endParagraphRunProperties3); textBody3.Append(bodyProperties3); textBody3.Append(listStyle3); textBody3.Append(paragraph3); shape3.Append(nonVisualShapeProperties3); shape3.Append(shapeProperties3); shape3.Append(textBody3); Shape shape4 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties4 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties5 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Notes Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties4 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks4 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties4.Append(shapeLocks4); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties5 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape4 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)3U }; applicationNonVisualDrawingProperties5.Append(placeholderShape4); nonVisualShapeProperties4.Append(nonVisualDrawingProperties5); nonVisualShapeProperties4.Append(nonVisualShapeDrawingProperties4); nonVisualShapeProperties4.Append(applicationNonVisualDrawingProperties5); ShapeProperties shapeProperties4 = new ShapeProperties(); A.Transform2D transform2D4 = new A.Transform2D(); A.Offset offset5 = new A.Offset(){ X = 914400L, Y = 3257550L }; A.Extents extents5 = new A.Extents(){ Cx = 7315200L, Cy = 3086100L }; transform2D4.Append(offset5); transform2D4.Append(extents5); A.PresetGeometry presetGeometry4 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList4 = new A.AdjustValueList(); presetGeometry4.Append(adjustValueList4); shapeProperties4.Append(transform2D4); shapeProperties4.Append(presetGeometry4); TextBody textBody4 = new TextBody(); A.BodyProperties bodyProperties4 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false }; A.NormalAutoFit normalAutoFit1 = new A.NormalAutoFit(); bodyProperties4.Append(normalAutoFit1); A.ListStyle listStyle4 = new A.ListStyle(); A.Paragraph paragraph4 = new A.Paragraph(); A.ParagraphProperties paragraphProperties1 = new A.ParagraphProperties(){ Level = 0 }; A.Run run3 = new A.Run(); A.RunProperties runProperties4 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties4.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text4 = new A.Text(); text4.Text = "Testing text on Notes Master"; run3.Append(runProperties4); run3.Append(text4); paragraph4.Append(paragraphProperties1); paragraph4.Append(run3); A.Paragraph paragraph5 = new A.Paragraph(); A.ParagraphProperties paragraphProperties2 = new A.ParagraphProperties(){ Level = 1 }; A.Run run4 = new A.Run(); A.RunProperties runProperties5 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties5.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text5 = new A.Text(); text5.Text = "Second level"; run4.Append(runProperties5); run4.Append(text5); paragraph5.Append(paragraphProperties2); paragraph5.Append(run4); A.Paragraph paragraph6 = new A.Paragraph(); A.ParagraphProperties paragraphProperties3 = new A.ParagraphProperties(){ Level = 2 }; A.Run run5 = new A.Run(); A.RunProperties runProperties6 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties6.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text6 = new A.Text(); text6.Text = "Third level"; run5.Append(runProperties6); run5.Append(text6); paragraph6.Append(paragraphProperties3); paragraph6.Append(run5); A.Paragraph paragraph7 = new A.Paragraph(); A.ParagraphProperties paragraphProperties4 = new A.ParagraphProperties(){ Level = 3 }; A.Run run6 = new A.Run(); A.RunProperties runProperties7 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties7.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text7 = new A.Text(); text7.Text = "Fourth level"; run6.Append(runProperties7); run6.Append(text7); paragraph7.Append(paragraphProperties4); paragraph7.Append(run6); A.Paragraph paragraph8 = new A.Paragraph(); A.ParagraphProperties paragraphProperties5 = new A.ParagraphProperties(){ Level = 4 }; A.Run run7 = new A.Run(); A.RunProperties runProperties8 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties8.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text8 = new A.Text(); text8.Text = "Fifth level"; run7.Append(runProperties8); run7.Append(text8); A.EndParagraphRunProperties endParagraphRunProperties4 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false }; paragraph8.Append(paragraphProperties5); paragraph8.Append(run7); paragraph8.Append(endParagraphRunProperties4); textBody4.Append(bodyProperties4); textBody4.Append(listStyle4); textBody4.Append(paragraph4); textBody4.Append(paragraph5); textBody4.Append(paragraph6); textBody4.Append(paragraph7); textBody4.Append(paragraph8); shape4.Append(nonVisualShapeProperties4); shape4.Append(shapeProperties4); shape4.Append(textBody4); Shape shape5 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties5 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties6 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Footer Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties5 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks5 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties5.Append(shapeLocks5); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties6 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape5 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)4U }; applicationNonVisualDrawingProperties6.Append(placeholderShape5); nonVisualShapeProperties5.Append(nonVisualDrawingProperties6); nonVisualShapeProperties5.Append(nonVisualShapeDrawingProperties5); nonVisualShapeProperties5.Append(applicationNonVisualDrawingProperties6); ShapeProperties shapeProperties5 = new ShapeProperties(); A.Transform2D transform2D5 = new A.Transform2D(); A.Offset offset6 = new A.Offset(){ X = 0L, Y = 6513910L }; A.Extents extents6 = new A.Extents(){ Cx = 3962400L, Cy = 342900L }; transform2D5.Append(offset6); transform2D5.Append(extents6); A.PresetGeometry presetGeometry5 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList5 = new A.AdjustValueList(); presetGeometry5.Append(adjustValueList5); shapeProperties5.Append(transform2D5); shapeProperties5.Append(presetGeometry5); TextBody textBody5 = new TextBody(); A.BodyProperties bodyProperties5 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Bottom }; A.ListStyle listStyle5 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties4 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left }; A.DefaultRunProperties defaultRunProperties13 = new A.DefaultRunProperties(){ FontSize = 1200 }; level1ParagraphProperties4.Append(defaultRunProperties13); listStyle5.Append(level1ParagraphProperties4); A.Paragraph paragraph9 = new A.Paragraph(); A.Run run8 = new A.Run(); A.RunProperties runProperties9 = new A.RunProperties(){ Language = "en-US", Dirty = false }; runProperties9.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text9 = new A.Text(); text9.Text = "Adding Footer to Notes Master"; run8.Append(runProperties9); run8.Append(text9); A.EndParagraphRunProperties endParagraphRunProperties5 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false }; paragraph9.Append(run8); paragraph9.Append(endParagraphRunProperties5); textBody5.Append(bodyProperties5); textBody5.Append(listStyle5); textBody5.Append(paragraph9); shape5.Append(nonVisualShapeProperties5); shape5.Append(shapeProperties5); shape5.Append(textBody5); shapeTree1.Append(nonVisualGroupShapeProperties1); shapeTree1.Append(groupShapeProperties1); shapeTree1.Append(shape1); shapeTree1.Append(shape2); shapeTree1.Append(shape3); shapeTree1.Append(shape4); shapeTree1.Append(shape5); CommonSlideDataExtensionList commonSlideDataExtensionList1 = new CommonSlideDataExtensionList(); CommonSlideDataExtension commonSlideDataExtension1 = new CommonSlideDataExtension(){ Uri = "{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}" }; P14.CreationId creationId1 = new P14.CreationId(){ Val = (UInt32Value)3631591638U }; creationId1.AddNamespaceDeclaration("p14", "http://schemas.microsoft.com/office/powerpoint/2010/main"); commonSlideDataExtension1.Append(creationId1); commonSlideDataExtensionList1.Append(commonSlideDataExtension1); commonSlideData1.Append(background1); commonSlideData1.Append(shapeTree1); commonSlideData1.Append(commonSlideDataExtensionList1); ColorMap colorMap1 = new ColorMap(){ Background1 = A.ColorSchemeIndexValues.Dark1, Text1 = A.ColorSchemeIndexValues.Light1, Background2 = A.ColorSchemeIndexValues.Dark2, Text2 = A.ColorSchemeIndexValues.Light2, Accent1 = A.ColorSchemeIndexValues.Accent1, Accent2 = A.ColorSchemeIndexValues.Accent2, Accent3 = A.ColorSchemeIndexValues.Accent3, Accent4 = A.ColorSchemeIndexValues.Accent4, Accent5 = A.ColorSchemeIndexValues.Accent5, Accent6 = A.ColorSchemeIndexValues.Accent6, Hyperlink = A.ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = A.ColorSchemeIndexValues.FollowedHyperlink }; NotesStyle notesStyle1 = new NotesStyle(); A.Level1ParagraphProperties level1ParagraphProperties5 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties14 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200, Baseline = 0 }; A.SolidFill solidFill11 = new A.SolidFill(); A.SchemeColor schemeColor11 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill11.Append(schemeColor11); A.LatinFont latinFont10 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont10 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont10 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties14.Append(solidFill11); defaultRunProperties14.Append(latinFont10); defaultRunProperties14.Append(eastAsianFont10); defaultRunProperties14.Append(complexScriptFont10); level1ParagraphProperties5.Append(defaultRunProperties14); A.Level2ParagraphProperties level2ParagraphProperties2 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties15 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill12 = new A.SolidFill(); A.SchemeColor schemeColor12 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill12.Append(schemeColor12); A.LatinFont latinFont11 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont11 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont11 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties15.Append(solidFill12); defaultRunProperties15.Append(latinFont11); defaultRunProperties15.Append(eastAsianFont11); defaultRunProperties15.Append(complexScriptFont11); level2ParagraphProperties2.Append(defaultRunProperties15); A.Level3ParagraphProperties level3ParagraphProperties2 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties16 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill13 = new A.SolidFill(); A.SchemeColor schemeColor13 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill13.Append(schemeColor13); A.LatinFont latinFont12 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont12 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont12 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties16.Append(solidFill13); defaultRunProperties16.Append(latinFont12); defaultRunProperties16.Append(eastAsianFont12); defaultRunProperties16.Append(complexScriptFont12); level3ParagraphProperties2.Append(defaultRunProperties16); A.Level4ParagraphProperties level4ParagraphProperties2 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties17 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill14 = new A.SolidFill(); A.SchemeColor schemeColor14 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill14.Append(schemeColor14); A.LatinFont latinFont13 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont13 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont13 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties17.Append(solidFill14); defaultRunProperties17.Append(latinFont13); defaultRunProperties17.Append(eastAsianFont13); defaultRunProperties17.Append(complexScriptFont13); level4ParagraphProperties2.Append(defaultRunProperties17); A.Level5ParagraphProperties level5ParagraphProperties2 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties18 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill15 = new A.SolidFill(); A.SchemeColor schemeColor15 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill15.Append(schemeColor15); A.LatinFont latinFont14 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont14 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont14 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties18.Append(solidFill15); defaultRunProperties18.Append(latinFont14); defaultRunProperties18.Append(eastAsianFont14); defaultRunProperties18.Append(complexScriptFont14); level5ParagraphProperties2.Append(defaultRunProperties18); A.Level6ParagraphProperties level6ParagraphProperties2 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties19 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill16 = new A.SolidFill(); A.SchemeColor schemeColor16 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill16.Append(schemeColor16); A.LatinFont latinFont15 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont15 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont15 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties19.Append(solidFill16); defaultRunProperties19.Append(latinFont15); defaultRunProperties19.Append(eastAsianFont15); defaultRunProperties19.Append(complexScriptFont15); level6ParagraphProperties2.Append(defaultRunProperties19); A.Level7ParagraphProperties level7ParagraphProperties2 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties20 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill17 = new A.SolidFill(); A.SchemeColor schemeColor17 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill17.Append(schemeColor17); A.LatinFont latinFont16 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont16 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont16 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties20.Append(solidFill17); defaultRunProperties20.Append(latinFont16); defaultRunProperties20.Append(eastAsianFont16); defaultRunProperties20.Append(complexScriptFont16); level7ParagraphProperties2.Append(defaultRunProperties20); A.Level8ParagraphProperties level8ParagraphProperties2 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties21 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill18 = new A.SolidFill(); A.SchemeColor schemeColor18 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill18.Append(schemeColor18); A.LatinFont latinFont17 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont17 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont17 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties21.Append(solidFill18); defaultRunProperties21.Append(latinFont17); defaultRunProperties21.Append(eastAsianFont17); defaultRunProperties21.Append(complexScriptFont17); level8ParagraphProperties2.Append(defaultRunProperties21); A.Level9ParagraphProperties level9ParagraphProperties2 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 914400, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties22 = new A.DefaultRunProperties(){ FontSize = 1200, Kerning = 1200 }; A.SolidFill solidFill19 = new A.SolidFill(); A.SchemeColor schemeColor19 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill19.Append(schemeColor19); A.LatinFont latinFont18 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont18 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont18 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties22.Append(solidFill19); defaultRunProperties22.Append(latinFont18); defaultRunProperties22.Append(eastAsianFont18); defaultRunProperties22.Append(complexScriptFont18); level9ParagraphProperties2.Append(defaultRunProperties22); notesStyle1.Append(level1ParagraphProperties5); notesStyle1.Append(level2ParagraphProperties2); notesStyle1.Append(level3ParagraphProperties2); notesStyle1.Append(level4ParagraphProperties2); notesStyle1.Append(level5ParagraphProperties2); notesStyle1.Append(level6ParagraphProperties2); notesStyle1.Append(level7ParagraphProperties2); notesStyle1.Append(level8ParagraphProperties2); notesStyle1.Append(level9ParagraphProperties2); notesMaster1.Append(commonSlideData1); notesMaster1.Append(colorMap1); notesMaster1.Append(notesStyle1); notesMasterPart1.NotesMaster = notesMaster1; }
public override void Load(Matrix.FxMatrixF mat, ColorMap map) { if (mat.Height != Image.Height || mat.Width != Image.Width) return; this.LockImage(); byte* pDst = Scan0; fixed(float* src = mat.Data) { float* pSrc = src; float* pSrcEnd = pSrc + mat.Size; for(; pSrc < pSrcEnd; pSrc++) { byte id = (byte)(*(pSrc) * 255); *(pDst++) = map[id, 2]; *(pDst++) = map[id, 1]; *(pDst++) = map[id, 0]; *(pDst++) = 255; } } this.UnLockImage(); }
public ColorMap<BGRA8> MakeRGB8Map(int width, int height) { var result = new ColorMap<BGRA8>(width, height); var max = MaxValues.Average(); for (int x = 0; x < width; x++) { var ind = x * width / (maxIndex + 1); var val = 0; for (int i = 0; i < comps; i++) val += Values[i][ind]; val /= comps; for (int y = (int)(height - height * val / max); y < height; y++) result.SetPixel(x, y, new BGRA8(255, 255, 255, 255)); } return result; }
public static KeyValuePair<Form, ColorEditor> Show(ColorMap colors) { ColorEditor edit = new ColorEditor(colors); if (colors.Count() > 0) { edit.m_list.SelectedIndices.Clear(); edit.m_list.SelectedIndices.Add(0); } Form f = new Form(); f.Text = "Colors"; f.FormBorderStyle = FormBorderStyle.SizableToolWindow; int pad = f.Size.Width - f.ClientRectangle.Width; int ypad = f.Size.Height - f.ClientRectangle.Height; f.Width = edit.Width + pad; f.Height = edit.Height + ypad; f.Controls.Add(edit); edit.Dock = DockStyle.Fill; f.Show(); return new KeyValuePair<Form, ColorEditor>(f, edit); }
/// <summary> /// フィールド値を描画する /// </summary> /// <param name="g"></param> /// <param name="ofs"></param> /// <param name="delta"></param> /// <param name="regionSize"></param> /// <param name="fieldDv"></param> /// <param name="valueDv"></param> /// <param name="colorMap"></param> /* public override void DrawField(Graphics g, Size ofs, Size delta, Size regionSize, FemElement.FieldDV fieldDv, FemElement.ValueDV valueDv, ColorMap colorMap) { //base.DrawField(g, ofs, delta, regionSize, colorMap); if (_Nodes == null || _FValues == null || _RotXFValues == null || _RotYFValues == null || _PoyntingXFValues == null || _PoyntingYFValues == null) { return; } Complex[] tagtValues = null; if (fieldDv == FemElement.FieldDV.Field) { tagtValues = _FValues; } else if (fieldDv == FemElement.FieldDV.RotX) { tagtValues = _RotXFValues; } else if (fieldDv == FemElement.FieldDV.RotY) { tagtValues = _RotYFValues; } else { return; } const int ndim = Constants.CoordDim2D; //2; // 座標の次元数 const int vertexCnt = Constants.TriVertexCnt; //3; // 三角形の頂点の数(2次要素でも同じ) //const int nodeCnt = Constants.TriNodeCnt_SecondOrder; //6; // 三角形2次要素 int nodeCnt = NodeNumbers.Length; if (nodeCnt != Constants.TriNodeCnt_SecondOrder && nodeCnt != Constants.TriNodeCnt_FirstOrder) { return; } // 三角形の節点座標を取得 double[][] pp = new double[nodeCnt][]; for (int ino = 0; ino < pp.GetLength(0); ino++) { FemNode node = _Nodes[ino]; System.Diagnostics.Debug.Assert(node.Coord.Length == ndim); pp[ino] = new double[ndim]; pp[ino][0] = node.Coord[0] * delta.Width + ofs.Width; pp[ino][1] = regionSize.Height - node.Coord[1] * delta.Height + ofs.Height; } // 下記分割ロジックの原点となる頂点 // 頂点0固定で計算していたが、原点の内角が直角のとき長方形メッシュになるので原点を2(頂点を0,1,2としたとき)にする int orginVertexNo = 2; // 内角が最大の頂点を取得し、その頂点を原点とする(後のロジックは原点が頂点を0,1,2としたとき、2になっている { double minCosth = double.MaxValue; int minCosthVertexNo = 0; for (int ino = 0; ino < vertexCnt; ino++) { const int vecCnt = 2; double[][] vec = new double[vecCnt][] { new double[ndim]{0, 0}, new double[ndim]{0, 0} }; double[] len = new double[vecCnt]; double costh; { int n1 = ino; int n2 = (ino + 1) % 3; int n3 = (ino + 2) % 3; vec[0][0] = pp[n2][0] - pp[n1][0]; vec[0][1] = pp[n2][1] - pp[n1][1]; vec[1][0] = pp[n3][0] - pp[n1][0]; vec[1][1] = pp[n3][1] - pp[n1][1]; len[0] = FemMeshLogic.GetDistance(pp[n1], pp[n2]); len[1] = FemMeshLogic.GetDistance(pp[n1], pp[n3]); costh = (vec[0][0] * vec[1][0] + vec[0][1] * vec[1][1]) / (len[0] * len[1]); if (costh < minCosth) { minCosth = costh; minCosthVertexNo = ino; } } } orginVertexNo = (minCosthVertexNo + 2) % 3; } // 三角形内部を四角形で分割 // 面積座標L1方向分割数 //int ndiv = 4; int ndiv = Constants.TriDrawFieldMshDivCnt; double defdL1 = 1.0 / (double)ndiv; double defdL2 = defdL1; for (int i1 = 0; i1 < ndiv; i1++) { double vL1 = i1 * defdL1; double vL1Next = (i1 + 1) * defdL1; if (i1 == ndiv - 1) { vL1Next = 1.0; } double vL2max = 1.0 - vL1; if (vL2max < 0.0) { // ERROR System.Diagnostics.Debug.WriteLine("logic error vL2max = {0}", vL2max); continue; } double fdiv2 = (double)ndiv * vL2max; int ndiv2 = (int)fdiv2; if (fdiv2 - (double)ndiv2 > Constants.PrecisionLowerLimit) { ndiv2++; } for (int i2 = 0; i2 < ndiv2; i2++) { double vL2 = i2 * defdL2; double vL2Next = (i2 + 1) * defdL2; if (i2 == ndiv2 - 1) { vL2Next = vL2max; } double vL3 = 1.0 - vL1 - vL2; if (vL3 < 0.0) { // ERROR System.Diagnostics.Debug.WriteLine("logic error vL3 = {0}", vL3); continue; } // 四角形の頂点 const int rectVCnt = 4; double[][] rectLi = new double[rectVCnt][] { new double[]{vL1 , vL2 , 0}, new double[]{vL1Next, vL2 , 0}, new double[]{vL1Next, vL2Next, 0}, new double[]{vL1 , vL2Next, 0} }; if ((i1 == ndiv - 1) || (i2 == ndiv2 - 1)) { for (int k = 0; k < 3; k++) { rectLi[2][k] = rectLi[3][k]; } } double[][] rectpp = new double[rectVCnt][]; for (int ino = 0; ino < rectVCnt; ino++) { if (rectLi[ino][0] < 0.0) { rectLi[ino][0] = 0.0; System.Diagnostics.Debug.WriteLine("logical error rectLi[{0}][0] = {1}", ino, rectLi[ino][0]); } if (rectLi[ino][0] > 1.0) { rectLi[ino][0] = 1.0; System.Diagnostics.Debug.WriteLine("logical error rectLi[{0}][0] = {1}", ino, rectLi[ino][0]); } if (rectLi[ino][1] < 0.0) { rectLi[ino][1] = 0.0; System.Diagnostics.Debug.WriteLine("logical error rectLi[{0}][1] = {1}", ino, rectLi[ino][1]); } if (rectLi[ino][1] > (1.0 - rectLi[ino][0])) // L2最大値(1 - L1)チェック { rectLi[ino][1] = 1.0 - rectLi[ino][0]; } rectLi[ino][2] = 1.0 - rectLi[ino][0] - rectLi[ino][1]; if (rectLi[ino][2] < 0.0) { System.Diagnostics.Debug.WriteLine("logical error rectLi[{0}][2] = {1}", ino, rectLi[ino][2]); } } for (int ino = 0; ino < rectVCnt; ino++) { double[] vLpp = rectLi[ino]; double xx = 0.0; double yy = 0.0; for (int k = 0; k < vertexCnt; k++) { xx += pp[k][0] * vLpp[(k + orginVertexNo) % vertexCnt]; yy += pp[k][1] * vLpp[(k + orginVertexNo) % vertexCnt]; } rectpp[ino] = new double[] { xx, yy }; } // 表示する位置 double[] vLi = new double[] { (rectLi[0][0] + rectLi[1][0]) * 0.5, (rectLi[0][1] + rectLi[3][1]) * 0.5, 0 }; if (vLi[0] < 0.0) { vLi[0] = 0.0; } if (vLi[0] > 1.0) { vLi[0] = 1.0; } if (vLi[1] < 0.0) { vLi[1] = 0.0; } if (vLi[1] > (1.0 - vLi[0])) { vLi[1] = (1.0 - vLi[0]); } vLi[2] = 1.0 - vLi[0] - vLi[1]; if (vLi[2] < 0.0) { System.Diagnostics.Debug.WriteLine("logic error vLi[2] = {0}", vLi[2]); } // 表示する値 Complex cvalue = new Complex(0.0, 0.0); // 表示する位置の形状関数値 double[] vNi = null; double[] shiftedLi = new double[vertexCnt]; for (int i = 0; i < vertexCnt; i++) { shiftedLi[i] = vLi[(i + orginVertexNo) % vertexCnt]; } if (nodeCnt == Constants.TriNodeCnt_FirstOrder) { vNi = new double[] { shiftedLi[0], shiftedLi[1], shiftedLi[2] }; } else { vNi = new double[] { shiftedLi[0] * (2.0 * shiftedLi[0] - 1.0), shiftedLi[1] * (2.0 * shiftedLi[1] - 1.0), shiftedLi[2] * (2.0 * shiftedLi[2] - 1.0), 4.0 * shiftedLi[0] * shiftedLi[1], 4.0 * shiftedLi[1] * shiftedLi[2], 4.0 * shiftedLi[2] * shiftedLi[0], }; } for (int k = 0; k < nodeCnt; k++) { cvalue += tagtValues[k] * vNi[k]; } // 四角形の頂点(描画用) Point[] rectp = new Point[rectVCnt]; for (int ino = 0; ino < rectVCnt; ino++) { rectp[ino] = new Point((int)rectpp[ino][0], (int)rectpp[ino][1]); } try { // 表示する値 double showValue = 0.0; if (valueDv == ValueDV.Real) { showValue = cvalue.Real; } else if (valueDv == ValueDV.Imaginary) { showValue = cvalue.Imaginary; } else { // 既定値は絶対値 showValue = Complex.Abs(cvalue); } // 塗りつぶし色の取得 Color fillColor = colorMap.GetColor(showValue); // 塗りつぶし using (Brush brush = new SolidBrush(fillColor)) { g.FillPolygon(brush, rectp); } } catch (Exception exception) { System.Diagnostics.Debug.WriteLine(exception.Message + " " + exception.StackTrace); } } } } */ public override void DrawField(Graphics g, Size ofs, Size delta, Size regionSize, FemElement.FieldDV fieldDv, FemElement.ValueDV valueDv, ColorMap colorMap) { //base.DrawField(g, ofs, delta, regionSize, colorMap); if (_Nodes == null || _FValues == null || _RotXFValues == null || _RotYFValues == null || _PoyntingXFValues == null || _PoyntingYFValues == null) { return; } Complex[] tagtValues = null; if (fieldDv == FemElement.FieldDV.Field) { tagtValues = _FValues; } else if (fieldDv == FemElement.FieldDV.RotX) { tagtValues = _RotXFValues; } else if (fieldDv == FemElement.FieldDV.RotY) { tagtValues = _RotYFValues; } else { return; } const int ndim = Constants.CoordDim2D; //2; // 座標の次元数 const int vertexCnt = Constants.TriVertexCnt; //3; // 三角形の頂点の数(2次要素でも同じ) //const int nodeCnt = Constants.TriNodeCnt_SecondOrder; //6; // 三角形2次要素 int nodeCnt = NodeNumbers.Length; if (nodeCnt != Constants.TriNodeCnt_SecondOrder && nodeCnt != Constants.TriNodeCnt_FirstOrder) { return; } // 三角形の節点座標を取得 double[][] pp = new double[nodeCnt][]; for (int ino = 0; ino < pp.GetLength(0); ino++) { FemNode node = _Nodes[ino]; System.Diagnostics.Debug.Assert(node.Coord.Length == ndim); pp[ino] = new double[ndim]; pp[ino][0] = node.Coord[0] * delta.Width + ofs.Width; pp[ino][1] = regionSize.Height - node.Coord[1] * delta.Height + ofs.Height; } // 長方形描画領域のリスト IList<double[][]> rectLiList = _RectLiList; // 描画ロジック上の原点となる頂点 int orginVertexNo = _OrginVertexNo; // 四角形の頂点 const int rectVCnt = 4; foreach (double[][] rectLi in rectLiList) { double[][] rectpp = new double[rectVCnt][]; for (int ino = 0; ino < rectVCnt; ino++) { double[] vLpp = rectLi[ino]; double xx = 0.0; double yy = 0.0; for (int k = 0; k < vertexCnt; k++) { xx += pp[k][0] * vLpp[(k + orginVertexNo) % vertexCnt]; yy += pp[k][1] * vLpp[(k + orginVertexNo) % vertexCnt]; } rectpp[ino] = new double[] { xx, yy }; } // 表示する位置 double[] vLi = new double[] { (rectLi[0][0] + rectLi[1][0]) * 0.5, (rectLi[0][1] + rectLi[3][1]) * 0.5, 0 }; if (vLi[0] < 0.0) { vLi[0] = 0.0; } if (vLi[0] > 1.0) { vLi[0] = 1.0; } if (vLi[1] < 0.0) { vLi[1] = 0.0; } if (vLi[1] > (1.0 - vLi[0])) { vLi[1] = (1.0 - vLi[0]); } vLi[2] = 1.0 - vLi[0] - vLi[1]; if (vLi[2] < 0.0) { System.Diagnostics.Debug.WriteLine("logic error vLi[2] = {0}", vLi[2]); } // 表示する値 Complex cvalue = new Complex(0.0, 0.0); // 表示する位置の形状関数値 double[] vNi = null; double[] shiftedLi = new double[vertexCnt]; for (int i = 0; i < vertexCnt; i++) { shiftedLi[i] = vLi[(i + orginVertexNo) % vertexCnt]; } if (nodeCnt == Constants.TriNodeCnt_FirstOrder) { vNi = new double[] { shiftedLi[0], shiftedLi[1], shiftedLi[2] }; } else { vNi = new double[] { shiftedLi[0] * (2.0 * shiftedLi[0] - 1.0), shiftedLi[1] * (2.0 * shiftedLi[1] - 1.0), shiftedLi[2] * (2.0 * shiftedLi[2] - 1.0), 4.0 * shiftedLi[0] * shiftedLi[1], 4.0 * shiftedLi[1] * shiftedLi[2], 4.0 * shiftedLi[2] * shiftedLi[0], }; } for (int k = 0; k < nodeCnt; k++) { cvalue += tagtValues[k] * vNi[k]; } // 四角形の頂点(描画用) Point[] rectp = new Point[rectVCnt]; for (int ino = 0; ino < rectVCnt; ino++) { rectp[ino] = new Point((int)rectpp[ino][0], (int)rectpp[ino][1]); } try { // 表示する値 double showValue = 0.0; if (valueDv == ValueDV.Real) { showValue = cvalue.Real; } else if (valueDv == ValueDV.Imaginary) { showValue = cvalue.Imaginary; } else { // 既定値は絶対値 showValue = Complex.Abs(cvalue); } // 塗りつぶし色の取得 Color fillColor = colorMap.GetColor(showValue); // 塗りつぶし using (Brush brush = new SolidBrush(fillColor)) { g.FillPolygon(brush, rectp); } } catch (Exception exception) { System.Diagnostics.Debug.WriteLine(exception.Message + " " + exception.StackTrace); } } }
public ColorEditor(ColorMap colors) { InitializeComponent(); Colors = colors; }
public ColorGenerator(ColorMap map, int count) { this.map = map; this.count = count; this.current = -1; }
public Color GetAntiAliasedColor(ColorMap colorMap, int x, int y, int levelsOfAA) { if (levelsOfAA <= 0) { return GetColor(colorMap, x, y); } else { Fragment srcF; int srcX = (x*2)%Fragment.FragmentSize; int srcY = (y*2)%Fragment.FragmentSize; if (x < Fragment.FragmentSize/2) { if (y < Fragment.FragmentSize/2) { srcF = ChildLT; } else { srcF = ChildLB; } } else { if (y < Fragment.FragmentSize/2) { srcF = ChildRT; } else { srcF = ChildRB; } } if (srcF != null && srcF.done) { Color color1 = srcF.GetAntiAliasedColor(colorMap, srcX + 0, srcY + 0, levelsOfAA - 1); Color color2 = srcF.GetAntiAliasedColor(colorMap, srcX + 0, srcY + 1, levelsOfAA - 1); Color color3 = srcF.GetAntiAliasedColor(colorMap, srcX + 1, srcY + 0, levelsOfAA - 1); Color color4 = srcF.GetAntiAliasedColor(colorMap, srcX + 1, srcY + 1, levelsOfAA - 1); int r = (color1.R + color2.R + color3.R + color4.R) / 4; int g = (color1.G + color2.G + color3.G + color4.G) / 4; int b = (color1.B + color2.B + color3.B + color4.B) / 4; return Color.FromArgb(r,g,b); } else { return GetColor(colorMap, x, y); } } }
/// <summary> /// フィールド値を描画する /// </summary> /// <param name="g"></param> /// <param name="ofs"></param> /// <param name="delta"></param> /// <param name="regionSize"></param> /// <param name="colorMap"></param> /// <param name="valueDv"></param> public override void DrawField(Graphics g, Size ofs, Size delta, Size regionSize, FemElement.FieldDV fieldDv, FemElement.ValueDV valueDv, ColorMap colorMap) { //base.DrawField(g, ofs, delta, regionSize, colorMap); if (_Nodes == null || _FValues == null || _RotXFValues == null || _RotYFValues == null || _PoyntingXFValues == null || _PoyntingYFValues == null) { return; } Complex[] tagtValues = null; if (fieldDv == FemElement.FieldDV.Field) { tagtValues = _FValues; } else if (fieldDv == FemElement.FieldDV.RotX) { tagtValues = _RotXFValues; } else if (fieldDv == FemElement.FieldDV.RotY) { tagtValues = _RotYFValues; } else { return; } const int ndim = Constants.CoordDim2D; //2; // 座標の次元数 const int vertexCnt = Constants.QuadVertexCnt; //3; // 四角形形の頂点の数(2次要素でも同じ) //const int nodeCnt = Constants.QuadNodeCnt_SecondOrder_Type2; //8; // 四角形2次要素 int nodeCnt = NodeNumbers.Length; if (nodeCnt != Constants.QuadNodeCnt_SecondOrder_Type2 && nodeCnt != Constants.QuadNodeCnt_FirstOrder) { return; } // 四角形節点座標を取得 double[][] pp = new double[nodeCnt][]; for (int ino = 0; ino < pp.GetLength(0); ino++) { FemNode node = _Nodes[ino]; System.Diagnostics.Debug.Assert(node.Coord.Length == ndim); pp[ino] = new double[ndim]; pp[ino][0] = node.Coord[0] * delta.Width + ofs.Width; pp[ino][1] = regionSize.Height - node.Coord[1] * delta.Height + ofs.Height; } // 四角形内部を四角形で分割 // 要素節点座標( 局所r,s成分 ) // s // | // 3+ 6 +2 // | | | // ---7---+---5-->r // | | | // 0+ 4 +1 // | // double[][] n_pts = { // r, s new double[] {-1.0, -1.0}, //0 new double[] { 1.0, -1.0}, //1 new double[] { 1.0, 1.0}, //2 new double[] {-1.0, 1.0}, //3 new double[] { 0, -1.0}, //4 new double[] { 1.0, 0}, //5 new double[] { 0, 1.0}, //6 new double[] {-1.0, 0}, //7 }; int ndiv = this.IsCoarseFieldMesh ? (Constants.TriDrawFieldMshDivCnt / 2) : Constants.TriDrawFieldMshDivCnt; double defdr = 2.0 / (double)ndiv; double defds = defdr; for (int i1 = 0; i1 < ndiv; i1++) { double r = - 1.0 + i1 * defdr; double rNext = r + defdr; for (int i2 = 0; i2 < ndiv; i2++) { double s = -1.0 + i2 * defds; double sNext = s + defds; // 四角形の頂点 const int rectVCnt = 4; double[][] rect_local_p = new double[rectVCnt][] { new double[]{r , s }, new double[]{rNext, s }, new double[]{rNext, sNext}, new double[]{r , sNext} }; double[][] rectpp = new double[rectVCnt][]; for (int ino = 0; ino < rectVCnt; ino++) { double work_r = rect_local_p[ino][0]; double work_s = rect_local_p[ino][1]; double xx = 0.0; double yy = 0.0; for (int k = 0; k < vertexCnt; k++) { double ri = n_pts[k][0]; double si = n_pts[k][1]; xx += pp[k][0] * 0.25 * (1 + ri * work_r) * (1 + si * work_s); yy += pp[k][1] * 0.25 * (1 + ri * work_r) * (1 + si * work_s); } rectpp[ino] = new double[] { xx, yy }; } // 表示する位置 double[] disp_p = new double[] { (rect_local_p[0][0] + rect_local_p[1][0]) * 0.5, (rect_local_p[0][1] + rect_local_p[3][1]) * 0.5 }; // 表示する値 Complex cvalue = new Complex(0.0, 0.0); // 表示する位置の形状関数値 double[] workN = new double[nodeCnt]; if (nodeCnt == Constants.QuadNodeCnt_FirstOrder) { double work_r = disp_p[0]; double work_s = disp_p[1]; for (int i = 0; i < 4; i++) { // 節点の局所座標 double ri = n_pts[i][0]; double si = n_pts[i][1]; workN[i] = 0.25 * (1.0 + ri * work_r) * (1.0 + si * work_s); } } else { double work_r = disp_p[0]; double work_s = disp_p[1]; // 節点0~3 : 四角形の頂点 for (int i = 0; i < 4; i++) { // 節点の局所座標 double ri = n_pts[i][0]; double si = n_pts[i][1]; // 形状関数N workN[i] = 0.25 * (1.0 + ri * work_r) * (1.0 + si * work_s) * (ri * work_r + si * work_s - 1.0); } // 節点4,6 : r方向辺上中点 foreach (int i in new int[] { 4, 6 }) { // 節点の局所座標 double ri = n_pts[i][0]; double si = n_pts[i][1]; // 形状関数N workN[i] = 0.5 * (1.0 - work_r * work_r) * (1.0 + si * work_s); } // 節点5,7 : s方向辺上中点 foreach (int i in new int[] { 5, 7 }) { // 節点の局所座標 double ri = n_pts[i][0]; double si = n_pts[i][1]; // 形状関数N workN[i] = 0.5 * (1.0 + ri * work_r) * (1.0 - work_s * work_s); } } for (int k = 0; k < nodeCnt; k++) { cvalue += tagtValues[k] * workN[k]; } // 四角形の頂点(描画用) Point[] rectp = new Point[rectVCnt]; for (int ino = 0; ino < rectVCnt; ino++) { rectp[ino] = new Point((int)rectpp[ino][0], (int)rectpp[ino][1]); } try { // 表示する値 double showValue = 0.0; if (valueDv == ValueDV.Real) { showValue = cvalue.Real; } else if (valueDv == ValueDV.Imaginary) { showValue = cvalue.Imaginary; } else { // 既定値は絶対値 showValue = Complex.Abs(cvalue); } // 塗りつぶし色の取得 Color fillColor = colorMap.GetColor(showValue); // 塗りつぶし using (Brush brush = new SolidBrush(fillColor)) { g.FillPolygon(brush, rectp); } } catch (Exception exception) { System.Diagnostics.Debug.WriteLine(exception.Message + " " + exception.StackTrace); } } } }
public TableLensEncapsulator(IDataCubeProvider data, ExcelDataProvider excelDataProvider) { this.excelDataProvider = excelDataProvider; this.data = data; // color map colorMapForTableLens = new ColorMap(); colorMapForTableLens.AddColorMapPart(new LinearRgbColorMapPart(Color.Blue, Color.Red)); // transpos List<int> selected = new List<int>(); selected.Add(SelectedIndex); lensDataTransformer = new TransposDataTransformer(); lensDataTransformer.Input = this.data; lensDataTransformer.SelectedCountry = selected; lensDataTransformer.SelectedIndicator = SelectedIndicator; lensDataTransformer.GetDataCube(); // table lens tablelens = new TableLens(); lensDataTransformer.SelectedCountry = new List<int>(){0}; tablelens.Input = lensDataTransformer.GetDataCube(); colorMapForTableLens.Input = tablelens.Input; tablelens.ColorMap = colorMapForTableLens; List<string> countrylist = new List<string>(); countrylist.Add(excelDataProvider.RowIds[SelectedIndex]); tablelens.HeadersList = countrylist; }
// Generates content of slideMasterPart1. private void GenerateSlideMasterPart1Content(SlideMasterPart slideMasterPart1) { SlideMaster slideMaster1 = new SlideMaster(); slideMaster1.AddNamespaceDeclaration("a", "http://schemas.openxmlformats.org/drawingml/2006/main"); slideMaster1.AddNamespaceDeclaration("r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); slideMaster1.AddNamespaceDeclaration("p", "http://schemas.openxmlformats.org/presentationml/2006/main"); CommonSlideData commonSlideData3 = new CommonSlideData(); Background background1 = new Background(); BackgroundStyleReference backgroundStyleReference1 = new BackgroundStyleReference(){ Index = (UInt32Value)1002U }; A.SchemeColor schemeColor44 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; backgroundStyleReference1.Append(schemeColor44); background1.Append(backgroundStyleReference1); ShapeTree shapeTree3 = new ShapeTree(); NonVisualGroupShapeProperties nonVisualGroupShapeProperties3 = new NonVisualGroupShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties15 = new NonVisualDrawingProperties(){ Id = (UInt32Value)1U, Name = "" }; NonVisualGroupShapeDrawingProperties nonVisualGroupShapeDrawingProperties3 = new NonVisualGroupShapeDrawingProperties(); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties15 = new ApplicationNonVisualDrawingProperties(); nonVisualGroupShapeProperties3.Append(nonVisualDrawingProperties15); nonVisualGroupShapeProperties3.Append(nonVisualGroupShapeDrawingProperties3); nonVisualGroupShapeProperties3.Append(applicationNonVisualDrawingProperties15); GroupShapeProperties groupShapeProperties3 = new GroupShapeProperties(); A.TransformGroup transformGroup3 = new A.TransformGroup(); A.Offset offset10 = new A.Offset(){ X = 0L, Y = 0L }; A.Extents extents10 = new A.Extents(){ Cx = 0L, Cy = 0L }; A.ChildOffset childOffset3 = new A.ChildOffset(){ X = 0L, Y = 0L }; A.ChildExtents childExtents3 = new A.ChildExtents(){ Cx = 0L, Cy = 0L }; transformGroup3.Append(offset10); transformGroup3.Append(extents10); transformGroup3.Append(childOffset3); transformGroup3.Append(childExtents3); groupShapeProperties3.Append(transformGroup3); Shape shape8 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties8 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties16 = new NonVisualDrawingProperties(){ Id = (UInt32Value)2U, Name = "Title Placeholder 1" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties8 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks8 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties8.Append(shapeLocks8); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties16 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape8 = new PlaceholderShape(){ Type = PlaceholderValues.Title }; applicationNonVisualDrawingProperties16.Append(placeholderShape8); nonVisualShapeProperties8.Append(nonVisualDrawingProperties16); nonVisualShapeProperties8.Append(nonVisualShapeDrawingProperties8); nonVisualShapeProperties8.Append(applicationNonVisualDrawingProperties16); ShapeProperties shapeProperties13 = new ShapeProperties(); A.Transform2D transform2D8 = new A.Transform2D(); A.Offset offset11 = new A.Offset(){ X = 684390L, Y = 4487333L }; A.Extents extents11 = new A.Extents(){ Cx = 8536623L, Cy = 1507067L }; transform2D8.Append(offset11); transform2D8.Append(extents11); A.PresetGeometry presetGeometry6 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList6 = new A.AdjustValueList(); presetGeometry6.Append(adjustValueList6); A.EffectList effectList2 = new A.EffectList(); shapeProperties13.Append(transform2D8); shapeProperties13.Append(presetGeometry6); shapeProperties13.Append(effectList2); TextBody textBody8 = new TextBody(); A.BodyProperties bodyProperties8 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.NormalAutoFit normalAutoFit3 = new A.NormalAutoFit(); bodyProperties8.Append(normalAutoFit3); A.ListStyle listStyle8 = new A.ListStyle(); A.Paragraph paragraph8 = new A.Paragraph(); A.Run run6 = new A.Run(); A.RunProperties runProperties8 = new A.RunProperties(){ Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties8.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text8 = new A.Text(); text8.Text = "Click to edit Master title style"; run6.Append(runProperties8); run6.Append(text8); A.EndParagraphRunProperties endParagraphRunProperties8 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false }; paragraph8.Append(run6); paragraph8.Append(endParagraphRunProperties8); textBody8.Append(bodyProperties8); textBody8.Append(listStyle8); textBody8.Append(paragraph8); shape8.Append(nonVisualShapeProperties8); shape8.Append(shapeProperties13); shape8.Append(textBody8); Shape shape9 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties9 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties17 = new NonVisualDrawingProperties(){ Id = (UInt32Value)3U, Name = "Text Placeholder 2" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties9 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks9 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties9.Append(shapeLocks9); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties17 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape9 = new PlaceholderShape(){ Type = PlaceholderValues.Body, Index = (UInt32Value)1U }; applicationNonVisualDrawingProperties17.Append(placeholderShape9); nonVisualShapeProperties9.Append(nonVisualDrawingProperties17); nonVisualShapeProperties9.Append(nonVisualShapeDrawingProperties9); nonVisualShapeProperties9.Append(applicationNonVisualDrawingProperties17); ShapeProperties shapeProperties14 = new ShapeProperties(); A.Transform2D transform2D9 = new A.Transform2D(); A.Offset offset12 = new A.Offset(){ X = 684390L, Y = 685801L }; A.Extents extents12 = new A.Extents(){ Cx = 8536623L, Cy = 3615267L }; transform2D9.Append(offset12); transform2D9.Append(extents12); A.PresetGeometry presetGeometry7 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList7 = new A.AdjustValueList(); presetGeometry7.Append(adjustValueList7); shapeProperties14.Append(transform2D9); shapeProperties14.Append(presetGeometry7); TextBody textBody9 = new TextBody(); A.BodyProperties bodyProperties9 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Center }; A.NormalAutoFit normalAutoFit4 = new A.NormalAutoFit(); bodyProperties9.Append(normalAutoFit4); A.ListStyle listStyle9 = new A.ListStyle(); A.Paragraph paragraph9 = new A.Paragraph(); A.ParagraphProperties paragraphProperties1 = new A.ParagraphProperties(){ Level = 0 }; A.Run run7 = new A.Run(); A.RunProperties runProperties9 = new A.RunProperties(){ Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties9.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text9 = new A.Text(); text9.Text = "Click to edit Master text styles"; run7.Append(runProperties9); run7.Append(text9); paragraph9.Append(paragraphProperties1); paragraph9.Append(run7); A.Paragraph paragraph10 = new A.Paragraph(); A.ParagraphProperties paragraphProperties2 = new A.ParagraphProperties(){ Level = 1 }; A.Run run8 = new A.Run(); A.RunProperties runProperties10 = new A.RunProperties(){ Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties10.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text10 = new A.Text(); text10.Text = "Second level"; run8.Append(runProperties10); run8.Append(text10); paragraph10.Append(paragraphProperties2); paragraph10.Append(run8); A.Paragraph paragraph11 = new A.Paragraph(); A.ParagraphProperties paragraphProperties3 = new A.ParagraphProperties(){ Level = 2 }; A.Run run9 = new A.Run(); A.RunProperties runProperties11 = new A.RunProperties(){ Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties11.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text11 = new A.Text(); text11.Text = "Third level"; run9.Append(runProperties11); run9.Append(text11); paragraph11.Append(paragraphProperties3); paragraph11.Append(run9); A.Paragraph paragraph12 = new A.Paragraph(); A.ParagraphProperties paragraphProperties4 = new A.ParagraphProperties(){ Level = 3 }; A.Run run10 = new A.Run(); A.RunProperties runProperties12 = new A.RunProperties(){ Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties12.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text12 = new A.Text(); text12.Text = "Fourth level"; run10.Append(runProperties12); run10.Append(text12); paragraph12.Append(paragraphProperties4); paragraph12.Append(run10); A.Paragraph paragraph13 = new A.Paragraph(); A.ParagraphProperties paragraphProperties5 = new A.ParagraphProperties(){ Level = 4 }; A.Run run11 = new A.Run(); A.RunProperties runProperties13 = new A.RunProperties(){ Language = "en-US", AlternativeLanguage = "ja-JP" }; runProperties13.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text13 = new A.Text(); text13.Text = "Fifth level"; run11.Append(runProperties13); run11.Append(text13); A.EndParagraphRunProperties endParagraphRunProperties9 = new A.EndParagraphRunProperties(){ Language = "en-US", Dirty = false }; paragraph13.Append(paragraphProperties5); paragraph13.Append(run11); paragraph13.Append(endParagraphRunProperties9); textBody9.Append(bodyProperties9); textBody9.Append(listStyle9); textBody9.Append(paragraph9); textBody9.Append(paragraph10); textBody9.Append(paragraph11); textBody9.Append(paragraph12); textBody9.Append(paragraph13); shape9.Append(nonVisualShapeProperties9); shape9.Append(shapeProperties14); shape9.Append(textBody9); Shape shape10 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties10 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties18 = new NonVisualDrawingProperties(){ Id = (UInt32Value)4U, Name = "Date Placeholder 3" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties10 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks10 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties10.Append(shapeLocks10); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties18 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape10 = new PlaceholderShape(){ Type = PlaceholderValues.DateAndTime, Size = PlaceholderSizeValues.Half, Index = (UInt32Value)2U }; applicationNonVisualDrawingProperties18.Append(placeholderShape10); nonVisualShapeProperties10.Append(nonVisualDrawingProperties18); nonVisualShapeProperties10.Append(nonVisualShapeDrawingProperties10); nonVisualShapeProperties10.Append(applicationNonVisualDrawingProperties18); ShapeProperties shapeProperties15 = new ShapeProperties(); A.Transform2D transform2D10 = new A.Transform2D(); A.Offset offset13 = new A.Offset(){ X = 9906992L, Y = 6172201L }; A.Extents extents13 = new A.Extents(){ Cx = 1600617L, Cy = 365125L }; transform2D10.Append(offset13); transform2D10.Append(extents13); A.PresetGeometry presetGeometry8 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList8 = new A.AdjustValueList(); presetGeometry8.Append(adjustValueList8); shapeProperties15.Append(transform2D10); shapeProperties15.Append(presetGeometry8); TextBody textBody10 = new TextBody(); A.BodyProperties bodyProperties10 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Top }; A.ListStyle listStyle10 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties4 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Right }; A.DefaultRunProperties defaultRunProperties21 = new A.DefaultRunProperties(){ FontSize = 1000, Bold = false, Italic = false }; A.SolidFill solidFill24 = new A.SolidFill(); A.SchemeColor schemeColor45 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation2 = new A.LuminanceModulation(){ Val = 50000 }; schemeColor45.Append(luminanceModulation2); solidFill24.Append(schemeColor45); A.EffectList effectList3 = new A.EffectList(); A.LatinFont latinFont10 = new A.LatinFont(){ Typeface = "+mn-lt" }; defaultRunProperties21.Append(solidFill24); defaultRunProperties21.Append(effectList3); defaultRunProperties21.Append(latinFont10); level1ParagraphProperties4.Append(defaultRunProperties21); listStyle10.Append(level1ParagraphProperties4); A.Paragraph paragraph14 = new A.Paragraph(); A.Field field3 = new A.Field(){ Id = "{CE1A2D98-1BBD-4706-A118-AAC2A16BEAD3}", Type = "datetimeFigureOut" }; A.RunProperties runProperties14 = new A.RunProperties(){ Kumimoji = true, Language = "ja-JP", AlternativeLanguage = "en-US" }; runProperties14.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text14 = new A.Text(); text14.Text = "2012/10/3"; field3.Append(runProperties14); field3.Append(text14); A.EndParagraphRunProperties endParagraphRunProperties10 = new A.EndParagraphRunProperties(){ Kumimoji = true, Language = "ja-JP", AlternativeLanguage = "en-US" }; paragraph14.Append(field3); paragraph14.Append(endParagraphRunProperties10); textBody10.Append(bodyProperties10); textBody10.Append(listStyle10); textBody10.Append(paragraph14); shape10.Append(nonVisualShapeProperties10); shape10.Append(shapeProperties15); shape10.Append(textBody10); Shape shape11 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties11 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties19 = new NonVisualDrawingProperties(){ Id = (UInt32Value)5U, Name = "Footer Placeholder 4" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties11 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks11 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties11.Append(shapeLocks11); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties19 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape11 = new PlaceholderShape(){ Type = PlaceholderValues.Footer, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)3U }; applicationNonVisualDrawingProperties19.Append(placeholderShape11); nonVisualShapeProperties11.Append(nonVisualDrawingProperties19); nonVisualShapeProperties11.Append(nonVisualShapeDrawingProperties11); nonVisualShapeProperties11.Append(applicationNonVisualDrawingProperties19); ShapeProperties shapeProperties16 = new ShapeProperties(); A.Transform2D transform2D11 = new A.Transform2D(); A.Offset offset14 = new A.Offset(){ X = 684390L, Y = 6172201L }; A.Extents extents14 = new A.Extents(){ Cx = 7545765L, Cy = 365125L }; transform2D11.Append(offset14); transform2D11.Append(extents14); A.PresetGeometry presetGeometry9 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList9 = new A.AdjustValueList(); presetGeometry9.Append(adjustValueList9); shapeProperties16.Append(transform2D11); shapeProperties16.Append(presetGeometry9); TextBody textBody11 = new TextBody(); A.BodyProperties bodyProperties11 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Top }; A.ListStyle listStyle11 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties5 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left }; A.DefaultRunProperties defaultRunProperties22 = new A.DefaultRunProperties(){ FontSize = 1000, Bold = false, Italic = false }; A.SolidFill solidFill25 = new A.SolidFill(); A.SchemeColor schemeColor46 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation3 = new A.LuminanceModulation(){ Val = 50000 }; schemeColor46.Append(luminanceModulation3); solidFill25.Append(schemeColor46); A.EffectList effectList4 = new A.EffectList(); A.LatinFont latinFont11 = new A.LatinFont(){ Typeface = "+mn-lt" }; defaultRunProperties22.Append(solidFill25); defaultRunProperties22.Append(effectList4); defaultRunProperties22.Append(latinFont11); level1ParagraphProperties5.Append(defaultRunProperties22); listStyle11.Append(level1ParagraphProperties5); A.Paragraph paragraph15 = new A.Paragraph(); A.EndParagraphRunProperties endParagraphRunProperties11 = new A.EndParagraphRunProperties(){ Kumimoji = true, Language = "ja-JP", AlternativeLanguage = "en-US" }; paragraph15.Append(endParagraphRunProperties11); textBody11.Append(bodyProperties11); textBody11.Append(listStyle11); textBody11.Append(paragraph15); shape11.Append(nonVisualShapeProperties11); shape11.Append(shapeProperties16); shape11.Append(textBody11); Shape shape12 = new Shape(); NonVisualShapeProperties nonVisualShapeProperties12 = new NonVisualShapeProperties(); NonVisualDrawingProperties nonVisualDrawingProperties20 = new NonVisualDrawingProperties(){ Id = (UInt32Value)6U, Name = "Slide Number Placeholder 5" }; NonVisualShapeDrawingProperties nonVisualShapeDrawingProperties12 = new NonVisualShapeDrawingProperties(); A.ShapeLocks shapeLocks12 = new A.ShapeLocks(){ NoGrouping = true }; nonVisualShapeDrawingProperties12.Append(shapeLocks12); ApplicationNonVisualDrawingProperties applicationNonVisualDrawingProperties20 = new ApplicationNonVisualDrawingProperties(); PlaceholderShape placeholderShape12 = new PlaceholderShape(){ Type = PlaceholderValues.SlideNumber, Size = PlaceholderSizeValues.Quarter, Index = (UInt32Value)4U }; applicationNonVisualDrawingProperties20.Append(placeholderShape12); nonVisualShapeProperties12.Append(nonVisualDrawingProperties20); nonVisualShapeProperties12.Append(nonVisualShapeDrawingProperties12); nonVisualShapeProperties12.Append(applicationNonVisualDrawingProperties20); ShapeProperties shapeProperties17 = new ShapeProperties(); A.Transform2D transform2D12 = new A.Transform2D(); A.Offset offset15 = new A.Offset(){ X = 10365900L, Y = 5578476L }; A.Extents extents15 = new A.Extents(){ Cx = 1142543L, Cy = 669925L }; transform2D12.Append(offset15); transform2D12.Append(extents15); A.PresetGeometry presetGeometry10 = new A.PresetGeometry(){ Preset = A.ShapeTypeValues.Rectangle }; A.AdjustValueList adjustValueList10 = new A.AdjustValueList(); presetGeometry10.Append(adjustValueList10); shapeProperties17.Append(transform2D12); shapeProperties17.Append(presetGeometry10); TextBody textBody12 = new TextBody(); A.BodyProperties bodyProperties12 = new A.BodyProperties(){ Vertical = A.TextVerticalValues.Horizontal, LeftInset = 91440, TopInset = 45720, RightInset = 91440, BottomInset = 45720, RightToLeftColumns = false, Anchor = A.TextAnchoringTypeValues.Bottom }; A.ListStyle listStyle12 = new A.ListStyle(); A.Level1ParagraphProperties level1ParagraphProperties6 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Right }; A.DefaultRunProperties defaultRunProperties23 = new A.DefaultRunProperties(){ FontSize = 3200, Bold = false, Italic = false }; A.SolidFill solidFill26 = new A.SolidFill(); A.SchemeColor schemeColor47 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation4 = new A.LuminanceModulation(){ Val = 50000 }; schemeColor47.Append(luminanceModulation4); solidFill26.Append(schemeColor47); A.EffectList effectList5 = new A.EffectList(); A.LatinFont latinFont12 = new A.LatinFont(){ Typeface = "+mn-lt" }; defaultRunProperties23.Append(solidFill26); defaultRunProperties23.Append(effectList5); defaultRunProperties23.Append(latinFont12); level1ParagraphProperties6.Append(defaultRunProperties23); listStyle12.Append(level1ParagraphProperties6); A.Paragraph paragraph16 = new A.Paragraph(); A.Field field4 = new A.Field(){ Id = "{D107CD50-7081-433F-A1F2-156B4E14F4F4}", Type = "slidenum" }; A.RunProperties runProperties15 = new A.RunProperties(){ Kumimoji = true, Language = "ja-JP", AlternativeLanguage = "en-US" }; runProperties15.SetAttribute(new OpenXmlAttribute("", "smtClean", "", "0")); A.Text text15 = new A.Text(); text15.Text = "‹#›"; field4.Append(runProperties15); field4.Append(text15); A.EndParagraphRunProperties endParagraphRunProperties12 = new A.EndParagraphRunProperties(){ Kumimoji = true, Language = "ja-JP", AlternativeLanguage = "en-US" }; paragraph16.Append(field4); paragraph16.Append(endParagraphRunProperties12); textBody12.Append(bodyProperties12); textBody12.Append(listStyle12); textBody12.Append(paragraph16); shape12.Append(nonVisualShapeProperties12); shape12.Append(shapeProperties17); shape12.Append(textBody12); shapeTree3.Append(nonVisualGroupShapeProperties3); shapeTree3.Append(groupShapeProperties3); shapeTree3.Append(shape8); shapeTree3.Append(shape9); shapeTree3.Append(shape10); shapeTree3.Append(shape11); shapeTree3.Append(shape12); CommonSlideDataExtensionList commonSlideDataExtensionList3 = new CommonSlideDataExtensionList(); CommonSlideDataExtension commonSlideDataExtension3 = new CommonSlideDataExtension(){ Uri = "{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}" }; P14.CreationId creationId3 = new P14.CreationId(){ Val = (UInt32Value)1057398551U }; creationId3.AddNamespaceDeclaration("p14", "http://schemas.microsoft.com/office/powerpoint/2010/main"); commonSlideDataExtension3.Append(creationId3); commonSlideDataExtensionList3.Append(commonSlideDataExtension3); commonSlideData3.Append(background1); commonSlideData3.Append(shapeTree3); commonSlideData3.Append(commonSlideDataExtensionList3); ColorMap colorMap1 = new ColorMap(){ Background1 = A.ColorSchemeIndexValues.Dark1, Text1 = A.ColorSchemeIndexValues.Light1, Background2 = A.ColorSchemeIndexValues.Dark2, Text2 = A.ColorSchemeIndexValues.Light2, Accent1 = A.ColorSchemeIndexValues.Accent1, Accent2 = A.ColorSchemeIndexValues.Accent2, Accent3 = A.ColorSchemeIndexValues.Accent3, Accent4 = A.ColorSchemeIndexValues.Accent4, Accent5 = A.ColorSchemeIndexValues.Accent5, Accent6 = A.ColorSchemeIndexValues.Accent6, Hyperlink = A.ColorSchemeIndexValues.Hyperlink, FollowedHyperlink = A.ColorSchemeIndexValues.FollowedHyperlink }; SlideLayoutIdList slideLayoutIdList1 = new SlideLayoutIdList(); SlideLayoutId slideLayoutId1 = new SlideLayoutId(){ Id = (UInt32Value)2147483754U, RelationshipId = "rId1" }; SlideLayoutId slideLayoutId2 = new SlideLayoutId(){ Id = (UInt32Value)2147483755U, RelationshipId = "rId2" }; SlideLayoutId slideLayoutId3 = new SlideLayoutId(){ Id = (UInt32Value)2147483756U, RelationshipId = "rId3" }; SlideLayoutId slideLayoutId4 = new SlideLayoutId(){ Id = (UInt32Value)2147483757U, RelationshipId = "rId4" }; SlideLayoutId slideLayoutId5 = new SlideLayoutId(){ Id = (UInt32Value)2147483758U, RelationshipId = "rId5" }; SlideLayoutId slideLayoutId6 = new SlideLayoutId(){ Id = (UInt32Value)2147483759U, RelationshipId = "rId6" }; SlideLayoutId slideLayoutId7 = new SlideLayoutId(){ Id = (UInt32Value)2147483760U, RelationshipId = "rId7" }; SlideLayoutId slideLayoutId8 = new SlideLayoutId(){ Id = (UInt32Value)2147483761U, RelationshipId = "rId8" }; SlideLayoutId slideLayoutId9 = new SlideLayoutId(){ Id = (UInt32Value)2147483762U, RelationshipId = "rId9" }; SlideLayoutId slideLayoutId10 = new SlideLayoutId(){ Id = (UInt32Value)2147483763U, RelationshipId = "rId10" }; SlideLayoutId slideLayoutId11 = new SlideLayoutId(){ Id = (UInt32Value)2147483764U, RelationshipId = "rId11" }; SlideLayoutId slideLayoutId12 = new SlideLayoutId(){ Id = (UInt32Value)2147483765U, RelationshipId = "rId12" }; SlideLayoutId slideLayoutId13 = new SlideLayoutId(){ Id = (UInt32Value)2147483766U, RelationshipId = "rId13" }; SlideLayoutId slideLayoutId14 = new SlideLayoutId(){ Id = (UInt32Value)2147483767U, RelationshipId = "rId14" }; SlideLayoutId slideLayoutId15 = new SlideLayoutId(){ Id = (UInt32Value)2147483768U, RelationshipId = "rId15" }; SlideLayoutId slideLayoutId16 = new SlideLayoutId(){ Id = (UInt32Value)2147483769U, RelationshipId = "rId16" }; SlideLayoutId slideLayoutId17 = new SlideLayoutId(){ Id = (UInt32Value)2147483770U, RelationshipId = "rId17" }; slideLayoutIdList1.Append(slideLayoutId1); slideLayoutIdList1.Append(slideLayoutId2); slideLayoutIdList1.Append(slideLayoutId3); slideLayoutIdList1.Append(slideLayoutId4); slideLayoutIdList1.Append(slideLayoutId5); slideLayoutIdList1.Append(slideLayoutId6); slideLayoutIdList1.Append(slideLayoutId7); slideLayoutIdList1.Append(slideLayoutId8); slideLayoutIdList1.Append(slideLayoutId9); slideLayoutIdList1.Append(slideLayoutId10); slideLayoutIdList1.Append(slideLayoutId11); slideLayoutIdList1.Append(slideLayoutId12); slideLayoutIdList1.Append(slideLayoutId13); slideLayoutIdList1.Append(slideLayoutId14); slideLayoutIdList1.Append(slideLayoutId15); slideLayoutIdList1.Append(slideLayoutId16); slideLayoutIdList1.Append(slideLayoutId17); AlternateContent alternateContent2 = new AlternateContent(); alternateContent2.AddNamespaceDeclaration("mc", "http://schemas.openxmlformats.org/markup-compatibility/2006"); alternateContent2.AddNamespaceDeclaration("p14", "http://schemas.microsoft.com/office/powerpoint/2010/main"); AlternateContentChoice alternateContentChoice2 = new AlternateContentChoice(){ Requires = "p14" }; Transition transition3 = new Transition(){ Speed = TransitionSpeedValues.Slow, Duration = "1500" }; SplitTransition splitTransition1 = new SplitTransition(){ Orientation = DirectionValues.Vertical }; transition3.Append(splitTransition1); alternateContentChoice2.Append(transition3); AlternateContentFallback alternateContentFallback2 = new AlternateContentFallback(); Transition transition4 = new Transition(){ Speed = TransitionSpeedValues.Slow }; SplitTransition splitTransition2 = new SplitTransition(){ Orientation = DirectionValues.Vertical }; transition4.Append(splitTransition2); alternateContentFallback2.Append(transition4); alternateContent2.Append(alternateContentChoice2); alternateContent2.Append(alternateContentFallback2); Timing timing3 = new Timing(); TimeNodeList timeNodeList3 = new TimeNodeList(); ParallelTimeNode parallelTimeNode3 = new ParallelTimeNode(); CommonTimeNode commonTimeNode3 = new CommonTimeNode(){ Id = (UInt32Value)1U, Duration = "indefinite", Restart = TimeNodeRestartValues.Never, NodeType = TimeNodeValues.TmingRoot }; parallelTimeNode3.Append(commonTimeNode3); timeNodeList3.Append(parallelTimeNode3); timing3.Append(timeNodeList3); TextStyles textStyles1 = new TextStyles(); TitleStyle titleStyle1 = new TitleStyle(); A.Level1ParagraphProperties level1ParagraphProperties7 = new A.Level1ParagraphProperties(){ Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore1 = new A.SpaceBefore(); A.SpacingPercent spacingPercent1 = new A.SpacingPercent(){ Val = 0 }; spaceBefore1.Append(spacingPercent1); A.NoBullet noBullet10 = new A.NoBullet(); A.DefaultRunProperties defaultRunProperties24 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 3600, Kerning = 1200, Capital = A.TextCapsValues.All }; A.Outline outline6 = new A.Outline(){ Width = 3175, CompoundLineType = A.CompoundLineValues.Single }; A.NoFill noFill1 = new A.NoFill(); outline6.Append(noFill1); A.SolidFill solidFill27 = new A.SolidFill(); A.SchemeColor schemeColor48 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill27.Append(schemeColor48); A.EffectList effectList6 = new A.EffectList(); A.LatinFont latinFont13 = new A.LatinFont(){ Typeface = "+mj-lt" }; A.EastAsianFont eastAsianFont10 = new A.EastAsianFont(){ Typeface = "+mj-ea" }; A.ComplexScriptFont complexScriptFont10 = new A.ComplexScriptFont(){ Typeface = "Trebuchet MS" }; defaultRunProperties24.Append(outline6); defaultRunProperties24.Append(solidFill27); defaultRunProperties24.Append(effectList6); defaultRunProperties24.Append(latinFont13); defaultRunProperties24.Append(eastAsianFont10); defaultRunProperties24.Append(complexScriptFont10); level1ParagraphProperties7.Append(spaceBefore1); level1ParagraphProperties7.Append(noBullet10); level1ParagraphProperties7.Append(defaultRunProperties24); A.Level2ParagraphProperties level2ParagraphProperties3 = new A.Level2ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties25 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill28 = new A.SolidFill(); A.SchemeColor schemeColor49 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill28.Append(schemeColor49); defaultRunProperties25.Append(solidFill28); level2ParagraphProperties3.Append(defaultRunProperties25); A.Level3ParagraphProperties level3ParagraphProperties3 = new A.Level3ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties26 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill29 = new A.SolidFill(); A.SchemeColor schemeColor50 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill29.Append(schemeColor50); defaultRunProperties26.Append(solidFill29); level3ParagraphProperties3.Append(defaultRunProperties26); A.Level4ParagraphProperties level4ParagraphProperties3 = new A.Level4ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties27 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill30 = new A.SolidFill(); A.SchemeColor schemeColor51 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill30.Append(schemeColor51); defaultRunProperties27.Append(solidFill30); level4ParagraphProperties3.Append(defaultRunProperties27); A.Level5ParagraphProperties level5ParagraphProperties3 = new A.Level5ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties28 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill31 = new A.SolidFill(); A.SchemeColor schemeColor52 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill31.Append(schemeColor52); defaultRunProperties28.Append(solidFill31); level5ParagraphProperties3.Append(defaultRunProperties28); A.Level6ParagraphProperties level6ParagraphProperties3 = new A.Level6ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties29 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill32 = new A.SolidFill(); A.SchemeColor schemeColor53 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill32.Append(schemeColor53); defaultRunProperties29.Append(solidFill32); level6ParagraphProperties3.Append(defaultRunProperties29); A.Level7ParagraphProperties level7ParagraphProperties3 = new A.Level7ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties30 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill33 = new A.SolidFill(); A.SchemeColor schemeColor54 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill33.Append(schemeColor54); defaultRunProperties30.Append(solidFill33); level7ParagraphProperties3.Append(defaultRunProperties30); A.Level8ParagraphProperties level8ParagraphProperties3 = new A.Level8ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties31 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill34 = new A.SolidFill(); A.SchemeColor schemeColor55 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill34.Append(schemeColor55); defaultRunProperties31.Append(solidFill34); level8ParagraphProperties3.Append(defaultRunProperties31); A.Level9ParagraphProperties level9ParagraphProperties3 = new A.Level9ParagraphProperties(){ EastAsianLineBreak = true, Height = true }; A.DefaultRunProperties defaultRunProperties32 = new A.DefaultRunProperties(){ Kumimoji = true }; A.SolidFill solidFill35 = new A.SolidFill(); A.SchemeColor schemeColor56 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text2 }; solidFill35.Append(schemeColor56); defaultRunProperties32.Append(solidFill35); level9ParagraphProperties3.Append(defaultRunProperties32); titleStyle1.Append(level1ParagraphProperties7); titleStyle1.Append(level2ParagraphProperties3); titleStyle1.Append(level3ParagraphProperties3); titleStyle1.Append(level4ParagraphProperties3); titleStyle1.Append(level5ParagraphProperties3); titleStyle1.Append(level6ParagraphProperties3); titleStyle1.Append(level7ParagraphProperties3); titleStyle1.Append(level8ParagraphProperties3); titleStyle1.Append(level9ParagraphProperties3); BodyStyle bodyStyle1 = new BodyStyle(); A.Level1ParagraphProperties level1ParagraphProperties8 = new A.Level1ParagraphProperties(){ LeftMargin = 285750, Indent = -285750, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore2 = new A.SpaceBefore(); A.SpacingPercent spacingPercent2 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore2.Append(spacingPercent2); A.SpaceAfter spaceAfter1 = new A.SpaceAfter(); A.SpacingPoints spacingPoints1 = new A.SpacingPoints(){ Val = 600 }; spaceAfter1.Append(spacingPoints1); A.BulletColor bulletColor1 = new A.BulletColor(); A.SchemeColor schemeColor57 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; bulletColor1.Append(schemeColor57); A.BulletSizePercentage bulletSizePercentage1 = new A.BulletSizePercentage(){ Val = 70000 }; A.BulletFont bulletFont1 = new A.BulletFont(){ Typeface = "Lucida Grande" }; A.CharacterBullet characterBullet1 = new A.CharacterBullet(){ Char = "►" }; A.DefaultRunProperties defaultRunProperties33 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200, Capital = A.TextCapsValues.None }; A.SolidFill solidFill36 = new A.SolidFill(); A.SchemeColor schemeColor58 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation5 = new A.LuminanceModulation(){ Val = 75000 }; schemeColor58.Append(luminanceModulation5); solidFill36.Append(schemeColor58); A.EffectList effectList7 = new A.EffectList(); A.LatinFont latinFont14 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont11 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont11 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties33.Append(solidFill36); defaultRunProperties33.Append(effectList7); defaultRunProperties33.Append(latinFont14); defaultRunProperties33.Append(eastAsianFont11); defaultRunProperties33.Append(complexScriptFont11); level1ParagraphProperties8.Append(spaceBefore2); level1ParagraphProperties8.Append(spaceAfter1); level1ParagraphProperties8.Append(bulletColor1); level1ParagraphProperties8.Append(bulletSizePercentage1); level1ParagraphProperties8.Append(bulletFont1); level1ParagraphProperties8.Append(characterBullet1); level1ParagraphProperties8.Append(defaultRunProperties33); A.Level2ParagraphProperties level2ParagraphProperties4 = new A.Level2ParagraphProperties(){ LeftMargin = 742950, Indent = -285750, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore3 = new A.SpaceBefore(); A.SpacingPercent spacingPercent3 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore3.Append(spacingPercent3); A.SpaceAfter spaceAfter2 = new A.SpaceAfter(); A.SpacingPoints spacingPoints2 = new A.SpacingPoints(){ Val = 600 }; spaceAfter2.Append(spacingPoints2); A.BulletColor bulletColor2 = new A.BulletColor(); A.SchemeColor schemeColor59 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; bulletColor2.Append(schemeColor59); A.BulletSizePercentage bulletSizePercentage2 = new A.BulletSizePercentage(){ Val = 70000 }; A.BulletFont bulletFont2 = new A.BulletFont(){ Typeface = "Lucida Grande" }; A.CharacterBullet characterBullet2 = new A.CharacterBullet(){ Char = "►" }; A.DefaultRunProperties defaultRunProperties34 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1600, Kerning = 1200, Capital = A.TextCapsValues.None }; A.SolidFill solidFill37 = new A.SolidFill(); A.SchemeColor schemeColor60 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation6 = new A.LuminanceModulation(){ Val = 75000 }; schemeColor60.Append(luminanceModulation6); solidFill37.Append(schemeColor60); A.EffectList effectList8 = new A.EffectList(); A.LatinFont latinFont15 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont12 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont12 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties34.Append(solidFill37); defaultRunProperties34.Append(effectList8); defaultRunProperties34.Append(latinFont15); defaultRunProperties34.Append(eastAsianFont12); defaultRunProperties34.Append(complexScriptFont12); level2ParagraphProperties4.Append(spaceBefore3); level2ParagraphProperties4.Append(spaceAfter2); level2ParagraphProperties4.Append(bulletColor2); level2ParagraphProperties4.Append(bulletSizePercentage2); level2ParagraphProperties4.Append(bulletFont2); level2ParagraphProperties4.Append(characterBullet2); level2ParagraphProperties4.Append(defaultRunProperties34); A.Level3ParagraphProperties level3ParagraphProperties4 = new A.Level3ParagraphProperties(){ LeftMargin = 1200150, Indent = -285750, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore4 = new A.SpaceBefore(); A.SpacingPercent spacingPercent4 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore4.Append(spacingPercent4); A.SpaceAfter spaceAfter3 = new A.SpaceAfter(); A.SpacingPoints spacingPoints3 = new A.SpacingPoints(){ Val = 600 }; spaceAfter3.Append(spacingPoints3); A.BulletColor bulletColor3 = new A.BulletColor(); A.SchemeColor schemeColor61 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; bulletColor3.Append(schemeColor61); A.BulletSizePercentage bulletSizePercentage3 = new A.BulletSizePercentage(){ Val = 70000 }; A.BulletFont bulletFont3 = new A.BulletFont(){ Typeface = "Lucida Grande" }; A.CharacterBullet characterBullet3 = new A.CharacterBullet(){ Char = "►" }; A.DefaultRunProperties defaultRunProperties35 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1400, Kerning = 1200, Capital = A.TextCapsValues.None }; A.SolidFill solidFill38 = new A.SolidFill(); A.SchemeColor schemeColor62 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation7 = new A.LuminanceModulation(){ Val = 75000 }; schemeColor62.Append(luminanceModulation7); solidFill38.Append(schemeColor62); A.EffectList effectList9 = new A.EffectList(); A.LatinFont latinFont16 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont13 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont13 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties35.Append(solidFill38); defaultRunProperties35.Append(effectList9); defaultRunProperties35.Append(latinFont16); defaultRunProperties35.Append(eastAsianFont13); defaultRunProperties35.Append(complexScriptFont13); level3ParagraphProperties4.Append(spaceBefore4); level3ParagraphProperties4.Append(spaceAfter3); level3ParagraphProperties4.Append(bulletColor3); level3ParagraphProperties4.Append(bulletSizePercentage3); level3ParagraphProperties4.Append(bulletFont3); level3ParagraphProperties4.Append(characterBullet3); level3ParagraphProperties4.Append(defaultRunProperties35); A.Level4ParagraphProperties level4ParagraphProperties4 = new A.Level4ParagraphProperties(){ LeftMargin = 1543050, Indent = -171450, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore5 = new A.SpaceBefore(); A.SpacingPercent spacingPercent5 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore5.Append(spacingPercent5); A.SpaceAfter spaceAfter4 = new A.SpaceAfter(); A.SpacingPoints spacingPoints4 = new A.SpacingPoints(){ Val = 600 }; spaceAfter4.Append(spacingPoints4); A.BulletColor bulletColor4 = new A.BulletColor(); A.SchemeColor schemeColor63 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; bulletColor4.Append(schemeColor63); A.BulletSizePercentage bulletSizePercentage4 = new A.BulletSizePercentage(){ Val = 70000 }; A.BulletFont bulletFont4 = new A.BulletFont(){ Typeface = "Lucida Grande" }; A.CharacterBullet characterBullet4 = new A.CharacterBullet(){ Char = "►" }; A.DefaultRunProperties defaultRunProperties36 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1200, Kerning = 1200, Capital = A.TextCapsValues.None }; A.SolidFill solidFill39 = new A.SolidFill(); A.SchemeColor schemeColor64 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation8 = new A.LuminanceModulation(){ Val = 75000 }; schemeColor64.Append(luminanceModulation8); solidFill39.Append(schemeColor64); A.EffectList effectList10 = new A.EffectList(); A.LatinFont latinFont17 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont14 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont14 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties36.Append(solidFill39); defaultRunProperties36.Append(effectList10); defaultRunProperties36.Append(latinFont17); defaultRunProperties36.Append(eastAsianFont14); defaultRunProperties36.Append(complexScriptFont14); level4ParagraphProperties4.Append(spaceBefore5); level4ParagraphProperties4.Append(spaceAfter4); level4ParagraphProperties4.Append(bulletColor4); level4ParagraphProperties4.Append(bulletSizePercentage4); level4ParagraphProperties4.Append(bulletFont4); level4ParagraphProperties4.Append(characterBullet4); level4ParagraphProperties4.Append(defaultRunProperties36); A.Level5ParagraphProperties level5ParagraphProperties4 = new A.Level5ParagraphProperties(){ LeftMargin = 2000250, Indent = -171450, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore6 = new A.SpaceBefore(); A.SpacingPercent spacingPercent6 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore6.Append(spacingPercent6); A.SpaceAfter spaceAfter5 = new A.SpaceAfter(); A.SpacingPoints spacingPoints5 = new A.SpacingPoints(){ Val = 600 }; spaceAfter5.Append(spacingPoints5); A.BulletColor bulletColor5 = new A.BulletColor(); A.SchemeColor schemeColor65 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; bulletColor5.Append(schemeColor65); A.BulletSizePercentage bulletSizePercentage5 = new A.BulletSizePercentage(){ Val = 70000 }; A.BulletFont bulletFont5 = new A.BulletFont(){ Typeface = "Lucida Grande" }; A.CharacterBullet characterBullet5 = new A.CharacterBullet(){ Char = "►" }; A.DefaultRunProperties defaultRunProperties37 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1200, Kerning = 1200, Capital = A.TextCapsValues.None }; A.SolidFill solidFill40 = new A.SolidFill(); A.SchemeColor schemeColor66 = new A.SchemeColor(){ Val = A.SchemeColorValues.Background2 }; A.LuminanceModulation luminanceModulation9 = new A.LuminanceModulation(){ Val = 75000 }; schemeColor66.Append(luminanceModulation9); solidFill40.Append(schemeColor66); A.EffectList effectList11 = new A.EffectList(); A.LatinFont latinFont18 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont15 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont15 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties37.Append(solidFill40); defaultRunProperties37.Append(effectList11); defaultRunProperties37.Append(latinFont18); defaultRunProperties37.Append(eastAsianFont15); defaultRunProperties37.Append(complexScriptFont15); level5ParagraphProperties4.Append(spaceBefore6); level5ParagraphProperties4.Append(spaceAfter5); level5ParagraphProperties4.Append(bulletColor5); level5ParagraphProperties4.Append(bulletSizePercentage5); level5ParagraphProperties4.Append(bulletFont5); level5ParagraphProperties4.Append(characterBullet5); level5ParagraphProperties4.Append(defaultRunProperties37); A.Level6ParagraphProperties level6ParagraphProperties4 = new A.Level6ParagraphProperties(){ LeftMargin = 2514600, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore7 = new A.SpaceBefore(); A.SpacingPercent spacingPercent7 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore7.Append(spacingPercent7); A.BulletFont bulletFont6 = new A.BulletFont(){ Typeface = "Arial" }; A.CharacterBullet characterBullet6 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties38 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill41 = new A.SolidFill(); A.SchemeColor schemeColor67 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill41.Append(schemeColor67); A.LatinFont latinFont19 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont16 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont16 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties38.Append(solidFill41); defaultRunProperties38.Append(latinFont19); defaultRunProperties38.Append(eastAsianFont16); defaultRunProperties38.Append(complexScriptFont16); level6ParagraphProperties4.Append(spaceBefore7); level6ParagraphProperties4.Append(bulletFont6); level6ParagraphProperties4.Append(characterBullet6); level6ParagraphProperties4.Append(defaultRunProperties38); A.Level7ParagraphProperties level7ParagraphProperties4 = new A.Level7ParagraphProperties(){ LeftMargin = 2971800, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore8 = new A.SpaceBefore(); A.SpacingPercent spacingPercent8 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore8.Append(spacingPercent8); A.BulletFont bulletFont7 = new A.BulletFont(){ Typeface = "Arial" }; A.CharacterBullet characterBullet7 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties39 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill42 = new A.SolidFill(); A.SchemeColor schemeColor68 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill42.Append(schemeColor68); A.LatinFont latinFont20 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont17 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont17 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties39.Append(solidFill42); defaultRunProperties39.Append(latinFont20); defaultRunProperties39.Append(eastAsianFont17); defaultRunProperties39.Append(complexScriptFont17); level7ParagraphProperties4.Append(spaceBefore8); level7ParagraphProperties4.Append(bulletFont7); level7ParagraphProperties4.Append(characterBullet7); level7ParagraphProperties4.Append(defaultRunProperties39); A.Level8ParagraphProperties level8ParagraphProperties4 = new A.Level8ParagraphProperties(){ LeftMargin = 3429000, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore9 = new A.SpaceBefore(); A.SpacingPercent spacingPercent9 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore9.Append(spacingPercent9); A.BulletFont bulletFont8 = new A.BulletFont(){ Typeface = "Arial" }; A.CharacterBullet characterBullet8 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties40 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill43 = new A.SolidFill(); A.SchemeColor schemeColor69 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill43.Append(schemeColor69); A.LatinFont latinFont21 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont18 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont18 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties40.Append(solidFill43); defaultRunProperties40.Append(latinFont21); defaultRunProperties40.Append(eastAsianFont18); defaultRunProperties40.Append(complexScriptFont18); level8ParagraphProperties4.Append(spaceBefore9); level8ParagraphProperties4.Append(bulletFont8); level8ParagraphProperties4.Append(characterBullet8); level8ParagraphProperties4.Append(defaultRunProperties40); A.Level9ParagraphProperties level9ParagraphProperties4 = new A.Level9ParagraphProperties(){ LeftMargin = 3886200, Indent = -228600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.SpaceBefore spaceBefore10 = new A.SpaceBefore(); A.SpacingPercent spacingPercent10 = new A.SpacingPercent(){ Val = 20000 }; spaceBefore10.Append(spacingPercent10); A.BulletFont bulletFont9 = new A.BulletFont(){ Typeface = "Arial" }; A.CharacterBullet characterBullet9 = new A.CharacterBullet(){ Char = "•" }; A.DefaultRunProperties defaultRunProperties41 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 2000, Kerning = 1200 }; A.SolidFill solidFill44 = new A.SolidFill(); A.SchemeColor schemeColor70 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill44.Append(schemeColor70); A.LatinFont latinFont22 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont19 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont19 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties41.Append(solidFill44); defaultRunProperties41.Append(latinFont22); defaultRunProperties41.Append(eastAsianFont19); defaultRunProperties41.Append(complexScriptFont19); level9ParagraphProperties4.Append(spaceBefore10); level9ParagraphProperties4.Append(bulletFont9); level9ParagraphProperties4.Append(characterBullet9); level9ParagraphProperties4.Append(defaultRunProperties41); bodyStyle1.Append(level1ParagraphProperties8); bodyStyle1.Append(level2ParagraphProperties4); bodyStyle1.Append(level3ParagraphProperties4); bodyStyle1.Append(level4ParagraphProperties4); bodyStyle1.Append(level5ParagraphProperties4); bodyStyle1.Append(level6ParagraphProperties4); bodyStyle1.Append(level7ParagraphProperties4); bodyStyle1.Append(level8ParagraphProperties4); bodyStyle1.Append(level9ParagraphProperties4); OtherStyle otherStyle1 = new OtherStyle(); A.DefaultParagraphProperties defaultParagraphProperties2 = new A.DefaultParagraphProperties(); A.DefaultRunProperties defaultRunProperties42 = new A.DefaultRunProperties(){ Language = "en-US" }; defaultParagraphProperties2.Append(defaultRunProperties42); A.Level1ParagraphProperties level1ParagraphProperties9 = new A.Level1ParagraphProperties(){ LeftMargin = 0, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties43 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill45 = new A.SolidFill(); A.SchemeColor schemeColor71 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill45.Append(schemeColor71); A.LatinFont latinFont23 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont20 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont20 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties43.Append(solidFill45); defaultRunProperties43.Append(latinFont23); defaultRunProperties43.Append(eastAsianFont20); defaultRunProperties43.Append(complexScriptFont20); level1ParagraphProperties9.Append(defaultRunProperties43); A.Level2ParagraphProperties level2ParagraphProperties5 = new A.Level2ParagraphProperties(){ LeftMargin = 457200, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties44 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill46 = new A.SolidFill(); A.SchemeColor schemeColor72 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill46.Append(schemeColor72); A.LatinFont latinFont24 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont21 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont21 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties44.Append(solidFill46); defaultRunProperties44.Append(latinFont24); defaultRunProperties44.Append(eastAsianFont21); defaultRunProperties44.Append(complexScriptFont21); level2ParagraphProperties5.Append(defaultRunProperties44); A.Level3ParagraphProperties level3ParagraphProperties5 = new A.Level3ParagraphProperties(){ LeftMargin = 914400, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties45 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill47 = new A.SolidFill(); A.SchemeColor schemeColor73 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill47.Append(schemeColor73); A.LatinFont latinFont25 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont22 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont22 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties45.Append(solidFill47); defaultRunProperties45.Append(latinFont25); defaultRunProperties45.Append(eastAsianFont22); defaultRunProperties45.Append(complexScriptFont22); level3ParagraphProperties5.Append(defaultRunProperties45); A.Level4ParagraphProperties level4ParagraphProperties5 = new A.Level4ParagraphProperties(){ LeftMargin = 1371600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties46 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill48 = new A.SolidFill(); A.SchemeColor schemeColor74 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill48.Append(schemeColor74); A.LatinFont latinFont26 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont23 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont23 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties46.Append(solidFill48); defaultRunProperties46.Append(latinFont26); defaultRunProperties46.Append(eastAsianFont23); defaultRunProperties46.Append(complexScriptFont23); level4ParagraphProperties5.Append(defaultRunProperties46); A.Level5ParagraphProperties level5ParagraphProperties5 = new A.Level5ParagraphProperties(){ LeftMargin = 1828800, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties47 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill49 = new A.SolidFill(); A.SchemeColor schemeColor75 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill49.Append(schemeColor75); A.LatinFont latinFont27 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont24 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont24 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties47.Append(solidFill49); defaultRunProperties47.Append(latinFont27); defaultRunProperties47.Append(eastAsianFont24); defaultRunProperties47.Append(complexScriptFont24); level5ParagraphProperties5.Append(defaultRunProperties47); A.Level6ParagraphProperties level6ParagraphProperties5 = new A.Level6ParagraphProperties(){ LeftMargin = 2286000, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties48 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill50 = new A.SolidFill(); A.SchemeColor schemeColor76 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill50.Append(schemeColor76); A.LatinFont latinFont28 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont25 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont25 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties48.Append(solidFill50); defaultRunProperties48.Append(latinFont28); defaultRunProperties48.Append(eastAsianFont25); defaultRunProperties48.Append(complexScriptFont25); level6ParagraphProperties5.Append(defaultRunProperties48); A.Level7ParagraphProperties level7ParagraphProperties5 = new A.Level7ParagraphProperties(){ LeftMargin = 2743200, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties49 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill51 = new A.SolidFill(); A.SchemeColor schemeColor77 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill51.Append(schemeColor77); A.LatinFont latinFont29 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont26 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont26 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties49.Append(solidFill51); defaultRunProperties49.Append(latinFont29); defaultRunProperties49.Append(eastAsianFont26); defaultRunProperties49.Append(complexScriptFont26); level7ParagraphProperties5.Append(defaultRunProperties49); A.Level8ParagraphProperties level8ParagraphProperties5 = new A.Level8ParagraphProperties(){ LeftMargin = 3200400, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties50 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill52 = new A.SolidFill(); A.SchemeColor schemeColor78 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill52.Append(schemeColor78); A.LatinFont latinFont30 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont27 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont27 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties50.Append(solidFill52); defaultRunProperties50.Append(latinFont30); defaultRunProperties50.Append(eastAsianFont27); defaultRunProperties50.Append(complexScriptFont27); level8ParagraphProperties5.Append(defaultRunProperties50); A.Level9ParagraphProperties level9ParagraphProperties5 = new A.Level9ParagraphProperties(){ LeftMargin = 3657600, Alignment = A.TextAlignmentTypeValues.Left, DefaultTabSize = 457200, RightToLeft = false, EastAsianLineBreak = true, LatinLineBreak = false, Height = true }; A.DefaultRunProperties defaultRunProperties51 = new A.DefaultRunProperties(){ Kumimoji = true, FontSize = 1800, Kerning = 1200 }; A.SolidFill solidFill53 = new A.SolidFill(); A.SchemeColor schemeColor79 = new A.SchemeColor(){ Val = A.SchemeColorValues.Text1 }; solidFill53.Append(schemeColor79); A.LatinFont latinFont31 = new A.LatinFont(){ Typeface = "+mn-lt" }; A.EastAsianFont eastAsianFont28 = new A.EastAsianFont(){ Typeface = "+mn-ea" }; A.ComplexScriptFont complexScriptFont28 = new A.ComplexScriptFont(){ Typeface = "+mn-cs" }; defaultRunProperties51.Append(solidFill53); defaultRunProperties51.Append(latinFont31); defaultRunProperties51.Append(eastAsianFont28); defaultRunProperties51.Append(complexScriptFont28); level9ParagraphProperties5.Append(defaultRunProperties51); otherStyle1.Append(defaultParagraphProperties2); otherStyle1.Append(level1ParagraphProperties9); otherStyle1.Append(level2ParagraphProperties5); otherStyle1.Append(level3ParagraphProperties5); otherStyle1.Append(level4ParagraphProperties5); otherStyle1.Append(level5ParagraphProperties5); otherStyle1.Append(level6ParagraphProperties5); otherStyle1.Append(level7ParagraphProperties5); otherStyle1.Append(level8ParagraphProperties5); otherStyle1.Append(level9ParagraphProperties5); textStyles1.Append(titleStyle1); textStyles1.Append(bodyStyle1); textStyles1.Append(otherStyle1); slideMaster1.Append(commonSlideData3); slideMaster1.Append(colorMap1); slideMaster1.Append(slideLayoutIdList1); slideMaster1.Append(alternateContent2); slideMaster1.Append(timing3); slideMaster1.Append(textStyles1); slideMasterPart1.SlideMaster = slideMaster1; }
private static RGB8Map ConvertToRGB(ColorMap<float> map, ColorToColorFilter<float, byte> filter) { var result = new RGB8Map(map.Width, map.Height); Parallel.For(0, map.Height, y => { var input = map.GetRow(y); var output = result.GetRow(y); for (var x = 0; x < map.Width; x++) { filter.ProcessColor(input, output); input.MoveNext(); output.MoveNext(); } }); return result; }