Questions tagged [cgm]

CGM (Computer Graphics Metafile), is a two-dimensional vector graphics format.

Computer Graphics Metafile (CGM) is used to primarily for technical illustration and professional design, but has largely been superseded by formats such as and .

8 questions
2
votes
3 answers

How to convert cgm to png on windows

I want to convert a .cgm file to an image file (.png) on windows. Are there any freeware/opensource tools for this? I tried to ImageMagik but it does not support this operation. Commandline inteface will be an added advance if any of the tools…
Goutam Lavudiya
  • 111
  • 1
  • 6
2
votes
1 answer

Converting CGM to PNG image using ImageIO

I am trying to convert a CGM file to PNG using below function. I am keep getting NullPointerException. public File convertCGMtoPNG(File cgmFile, File directoryToCreatePNG, String nameSuffix) throws IOException { …
Krishnom
  • 1,348
  • 12
  • 39
1
vote
0 answers

Convert .CGM file to JPG or PNG using c#?

I am trying to convert ".cgm file to .jpg or .bmp file" in c# but nothing is working for me. I can convert .cgm file to .pdf and then .pdf to .jpg or .bmp. Is there any way to convert directly from .cgm to .jpg? If yes then how?
Mayank Pandey
  • 185
  • 1
  • 11
0
votes
0 answers

I need to convert a .CGM file to base64 encoded content

I have a batch of .CGM files and it needs to be base64 encoded and get the content inside it as a String. I have no idea what the input file content type is, so I will upload a snapshot of a small piece of the input file content for reference.…
Sanath
  • 1
  • 1
0
votes
1 answer

replace() error in MAGE function in R's iglu package for glucose analysis

I'm trying to use the all_metrics() function of the iglu package in R. The function always throws an error when calling the mage_ma_single() function, which itself gets called by the mage() function. Here's the package's function's source code which…
TIV
  • 11
  • 5
0
votes
1 answer

Calculate an elliptical arc start and end angles given two vectors

I am working on a program which draws shapes based on a cgm file input. I am trying to draw elliptical arc and it gives the opening portion in terms of a start and end vector from the center of the arc. I need help calculating the angle to the…
Gene
  • 3
  • 4
0
votes
1 answer

Display the notification number Android

i want to show the notification icon number but nothing showed, there is my code : private static void generateNotification(Context context, String message, String title, String url) { mContext = context; int icon =…
0
votes
1 answer

Working with CGM version 4 files?

My local government requires the use of ActiveCGM (which I believe is a form of CGM file format, version 4) for viewing technical documents. The standard is well-documented but the idea of reading and implementing a 449 page specification sounds…
Gili
  • 86,244
  • 97
  • 390
  • 689