public void InsertImage(int ascent, VerticalCharacterAlignment verticalAlign, string filename) { using (var image = Image.FromFile(filename)) { InsertImage(image.HiMetricWidth() * 2 / 3, image.HiMetricHeight() * 2 / 3, ascent, verticalAlign, filename, filename); } }
public void InsertImage(int width, int height, int ascent, VerticalCharacterAlignment verticalAlign, string alternateText, string filename) { var image = new ImageParameters { xWidth = width, yHeight = height, ascent = ascent, type = (int)verticalAlign, pwszAlternateText = alternateText, pIStream = NativeMethods.SHCreateStreamOnFileEx(filename, (int)0x00000040L, 0x1, false, null) }; NativeMethods.SendMessage(Handle, RichEditMessages.EM_INSERTIMAGE, IntPtr.Zero, ref image); }
public void InsertImage(int width, int height, int ascent, VerticalCharacterAlignment verticalAlign, string alternateText, Windows.Storage.Streams.IRandomAccessStream value) { throw new NotImplementedException(); }
public void GetPoint(HorizontalCharacterAlignment horizontalAlign, VerticalCharacterAlignment verticalAlign, PointOptions options, out Windows.Foundation.Point point) { throw new NotImplementedException(); }