Search found 27 matches

by rkm
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'...
by rkm
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

David,

I'll try to put together a more compact and coherent spec for what I need to do and how I've tried to accomplish it. - with competing tasks it may take a day or so before it's completed.

Would you prefer we take this private or leave it public?

-rob
by rkm
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

That's correct except for the "default" bit - which makes it sound like a limitation. I certainly didn't mean to imply it was a limitation. Rather that DPlot does an excellent job generating an appropriate plot for the machine it's running on with little or no tweaking by the programmer. ...
by rkm
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...
by rkm
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...
by rkm
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

The problem is, I really have no interest in the "printed" plots other than as an efficient vehicle to pass a plot file from the server, which uses DPlot Jr to generate it, to the client that will display it in a window of known pixel dimensions. The client passes the server the window siz...
by rkm
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

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? As I think more about it, the program generating the "printer" file plot knows the window he...
by rkm
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...
by rkm
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 ...
by rkm
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

Is the Size(width,height) command in addition to the SetPluginImageDims(width,height) I'm using elsewhere to set the pixel dimensions of the plot written to file?

Does DPlot assume a standard pixels to inches conversion factor I can use in the Size(width,height) command?
by rkm
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...
by rkm
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...
by rkm
Thu Nov 14, 2013 4:35 pm
Forum: C, C++, C#
Topic: specifying the dimensions of output image file
Replies: 17
Views: 101256

OK, whatever the problem is, is it's pretty obscure. I'll keep experimenting at this end to see what I can find.
by rkm
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...
by rkm
Thu Nov 14, 2013 1:49 am
Forum: C, C++, C#
Topic: specifying the dimensions of output image file
Replies: 17
Views: 101256

OK I'll email you a grf and a png, of the same image, supposed to be 475x525.

In addition to the dimensions problem with the png you can see that some of the vertical lines, that appear correctly in the grf, have been left out of the png.
by rkm
Wed Nov 13, 2013 9:02 pm
Forum: C, C++, C#
Topic: specifying the dimensions of output image file
Replies: 17
Views: 101256

I tried [SetPluginImageDims(475,525,24,0,0)] -it made no difference.

There's no saved DPlot file, I'm using DPlot Jr. and DDE

Am I correct in assuming that the SetPluginImageDims() should come after the DPLOT_PLOT(...) command?

Other than the dimensions issue the image is being saved properly.
by rkm
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....
by rkm
Tue Nov 12, 2013 11:50 pm
Forum: C, C++, C#
Topic: specifying the dimensions of output image file
Replies: 17
Views: 101256

I failed to mention I need to do this from DPlot Jr.
by rkm
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...
by rkm
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...
by rkm
Mon Jan 14, 2013 10:00 am
Forum: C, C++, C#
Topic: Conversion from data space to plot size ratio?
Replies: 2
Views: 26462

Thanks, I'll do that. Was just wondering if there was I macro I might have missed.

-rob
by rkm
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.
by rkm
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
by rkm
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...
by rkm
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...
by rkm
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

Actually it seems to be working remarkably well. I am however having a problem with ctest4 where I (properly) get the message:

Error! E1011: Symbol 'PSD_INTHOUSANDTHSOFINCHES' has not been declared

Does anyone know where this is/should be declared?
by rkm
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