• There may be a more elegant way to do it, but here's a way that will work for an existing graphic object assuming the twpformEditor (FE) has a selected graphic object and assuming the graphic is not of the vector variety:

    Code
    var  s:TmemoryStream;  p:Tpicture;begin   p.LoadFromFile('graphic.bmp');   s:=tMemorystream.Create;   with FE do      begin          p.Bitmap.SaveToStream(s);          TWPFGGraphicPicture(SelectedObject).Picture.Bitmap.FreeImage;          TWPFGGraphicPicture(SelectedObject).LoadFromStream(s);          TWPFGGraphicPicture(SelectedObject).PictureStreamType:='BMP';          s.Free;       end;end;

    If you want to add a new graphic object:

    Hope this helped.