Grasshopper

algorithmic modeling for Rhino

VB: Combining vector graphics and bitmaps in WMF files

Does anyone know how to create a WMF file that has both bitmap and vector graphic components?

I know how to make a bitmap or a wmf, but I can't seem to combine the two.  To start the process, I tried converting the bitmap to a wmf as below:


Dim bm As New System.Drawing.Bitmap(100, 100)
...
bm.Save("C:\...\test05.wmf", Imaging.ImageFormat.Wmf)


which works, but when I try to define the new file as a metafile image:


Dim wmf As New Imaging.Metafile("C:\...\test05.wmf")


I get the error: "A generic error occurred in GDI+ (line 0)".

Thoughts?


Thanks,

Jon

Views: 214

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service