Search found 27 matches
- Fri Dec 20, 2013 1:06 pm
- Forum: C, C++, C#
- Topic: Reconciling font etc. sizes between display and saved files
- Replies: 19
- Views: 124829
While trying to put together a more compact and coherent spec for what I need to do, how I've tried to accomplish, and the problems, I've come to the conclusion that there may be two separate problems. The first is related to FileSaveAs() slightly different than addressed in my previous thread. Let'...
- Mon Dec 16, 2013 9:08 am
- Forum: C, C++, C#
- Topic: Reconciling font etc. sizes between display and saved files
- Replies: 19
- Views: 124829
- Sat Dec 14, 2013 3:15 pm
- Forum: C, C++, C#
- Topic: Reconciling font etc. sizes between display and saved files
- Replies: 19
- Views: 124829
- Sat Dec 14, 2013 1:47 pm
- Forum: C, C++, C#
- Topic: Reconciling font etc. sizes between display and saved files
- Replies: 19
- Views: 124829
After a few days off to deal with other crises I'm back to this one. Unfortunately I was overly optimistic. The problem has not gone away, and the dimension and pixels per inch tweaking has become a major issue. Just what I'm trying to avoid. By using the Size() function, the oversize font size prob...
- Thu Dec 05, 2013 3:34 pm
- Forum: C, C++, C#
- Topic: Reconciling font etc. sizes between display and saved files
- Replies: 19
- Views: 124829
Again many thanks. Your examples were a great help. My fried brain had lead me to misuse the Size() command; correct use does indeed appear to be the solution. Font choice now seems good. Any remaining issues look like they should to be solvable by minor dimension tweaking at this end (famous last w...
- Thu Dec 05, 2013 12:22 pm
- Forum: C, C++, C#
- Topic: Reconciling font etc. sizes between display and saved files
- Replies: 19
- Views: 124829
- Wed Dec 04, 2013 11:06 pm
- Forum: C, C++, C#
- Topic: Reconciling font etc. sizes between display and saved files
- Replies: 19
- Views: 124829
- Wed Dec 04, 2013 5:17 pm
- Forum: C, C++, C#
- Topic: Reconciling font etc. sizes between display and saved files
- Replies: 19
- Views: 124829
Many thanks. Actually I'm always impressed by the promptitude of your replies. There's no way to do both. If the bitmap dimensions have a different aspect ratio than your display, then what should the bitmap font sizes be based on? The plot width or height or something else? Yes, I just started to r...
- Wed Dec 04, 2013 9:22 am
- Forum: C, C++, C#
- Topic: Reconciling font etc. sizes between display and saved files
- Replies: 19
- Views: 124829
I don't see how Size(state,X,Y,WYSIWYG) can meet my requirements. My objective is to let DPlot automatically calculate the size of a plot such that it fills as much of the document window as possible( state = 0; X,Y, and WYSIWYG are ignored.) but have DPlot adjust the font sizes used in the printed ...
- Sun Dec 01, 2013 7:57 am
- Forum: C, C++, C#
- Topic: Reconciling font etc. sizes between display and saved files
- Replies: 19
- Views: 124829
- Sat Nov 30, 2013 4:06 pm
- Forum: C, C++, C#
- Topic: Reconciling font etc. sizes between display and saved files
- Replies: 19
- Views: 124829
Reconciling font etc. sizes between display and saved files
Using DPlot Jr, in one application I'm creating a plot with the option of writing it to an image file from which it can be loaded by another application. Depending on the plot, it can be written as either a BMP or a PNG. In both applications the display windows for the plots are the same size (which...
- Thu Nov 14, 2013 10:29 pm
- Forum: C, C++, C#
- Topic: specifying the dimensions of output image file
- Replies: 17
- Views: 101256
Problem found! It was an obscure failure to initialize an index that pointed to formats and format strings in a table. I plan to learn to write bug-free code in some future life. Anyway, the result was that the image was being saved as a WMF with an extension of PNG. The viewer that succeed in loadi...
- Thu Nov 14, 2013 4:35 pm
- Forum: C, C++, C#
- Topic: specifying the dimensions of output image file
- Replies: 17
- Views: 101256
- Thu Nov 14, 2013 12:35 pm
- Forum: C, C++, C#
- Topic: specifying the dimensions of output image file
- Replies: 17
- Views: 101256
As mentioned in my separate email, I'm suspecting the problem may be in the module that writes the PNG, perhaps FREEIMAGE.DLL or at least the version distributed with DPlot. As you mentioned, there is at least one problem, the PNG is corrupt. This is clearly a bug -some readers will handle it, Firef...
- Thu Nov 14, 2013 1:49 am
- Forum: C, C++, C#
- Topic: specifying the dimensions of output image file
- Replies: 17
- Views: 101256
- Wed Nov 13, 2013 9:02 pm
- Forum: C, C++, C#
- Topic: specifying the dimensions of output image file
- Replies: 17
- Views: 101256
- Wed Nov 13, 2013 1:31 pm
- Forum: C, C++, C#
- Topic: specifying the dimensions of output image file
- Replies: 17
- Views: 101256
Thanks for the prompt reply. I tried the function but it does not seem to be performing as I expected: I started by sending the DPlot_Command to set the image dimensions [SetPluginImageDims(475,525,24)] followed by a [FileSaveAs(...) command The file was saved but the image dimensions were: 577,436....
- Tue Nov 12, 2013 11:50 pm
- Forum: C, C++, C#
- Topic: specifying the dimensions of output image file
- Replies: 17
- Views: 101256
- Tue Nov 12, 2013 5:51 pm
- Forum: C, C++, C#
- Topic: specifying the dimensions of output image file
- Replies: 17
- Views: 101256
specifying the dimensions of output image file
In one application I'm creating a plot and writing it to an image file from which it can be loaded by another application. I want to specify the dimensions in pixels of the output image file to be certain it will fit comfortably in a specified window size in the second application. There must be som...
- Thu Jan 24, 2013 9:47 pm
- Forum: Bug Reports
- Topic: ContourScales bug?
- Replies: 2
- Views: 13677
ContourScales bug?
I have a contour plot analogous to, and borrowed heavily from, case 13 in CTEST.C. The one peculiarity of my plot is that the y-axis values represent depth in the earth so they, and the axis annotation, must increase downward. By including the macro command [ContourScales(, -1,)] to reverse the y-ax...
- Mon Jan 14, 2013 10:00 am
- Forum: C, C++, C#
- Topic: Conversion from data space to plot size ratio?
- Replies: 2
- Views: 26462
- Sun Jan 13, 2013 12:42 pm
- Forum: C, C++, C#
- Topic: Conversion from data space to plot size ratio?
- Replies: 2
- Views: 26462
Conversion from data space to plot size ratio?
Is there a macro or other simple means to convert from data space to plot size ratios?
I'd like to use TextNoteEx() with the X value expressed in data space coordinates but the Y value expressed in the default ratios of plot size.
I'd like to use TextNoteEx() with the X value expressed in data space coordinates but the Y value expressed in the default ratios of plot size.
- Wed Jan 02, 2013 3:48 pm
- Forum: C, C++, C#
- Topic: DATA_3D RefLine() equivalent?
- Replies: 1
- Views: 23250
DATA_3D RefLine() equivalent?
Is there any way to add the equivalent of a [RefLine()] (x=constant) to a DATA_3D plot? I'll only be viewing it from directly above (parallel to the z axis) with no rotation. Obviously I could insert false data at those values to create a contrast but that has some undesirable effects. Thanks, -rob
- Mon Dec 17, 2012 4:39 pm
- Forum: C, C++, C#
- Topic: What function fills DPLOT_PLOTMETRICS structure?
- Replies: 3
- Views: 29267
Thanks. At least I know I'm looking in the right place. The structure is static. DPlot_SetErrorMethod(2) is being used and does not report any error. DPlot_GetBitmapEx() is returning what appears to be a valid bitmap handle. The bitmap handle changes each time the same data set is replotted (which I...
- Mon Dec 17, 2012 12:14 pm
- Forum: C, C++, C#
- Topic: What function fills DPLOT_PLOTMETRICS structure?
- Replies: 3
- Views: 29267
What function fills DPLOT_PLOTMETRICS structure?
I have been using DPLOTLIB.LIB to create a dialog box to display a variety of plots from a data set. The dialog is based on CTEST2.C and during most of the development has been successfully handling the WM_MOUSEMOVE messages. As the capability of the dialog expands, so does the code so it is now wel...
- Wed Nov 21, 2012 4:54 pm
- Forum: C, C++, C#
- Topic: Anyone have experience with DPlot and Open Watcom C/C++?
- Replies: 2
- Views: 27002
- Wed Nov 21, 2012 11:24 am
- Forum: C, C++, C#
- Topic: Anyone have experience with DPlot and Open Watcom C/C++?
- Replies: 2
- Views: 27002
Anyone have experience with DPlot and Open Watcom C/C++?
I'm a newbie to DPlot and am looking for instructions on how to interface to OW 1.9
Thanks in advance for any suggestions.
-rob
Thanks in advance for any suggestions.
-rob