ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Flipping a Meter
Posted by sdanks on Dec-30-2010 07:33
I have created several meters for use as a car heads up display.
However, I need to flip them horizontally so they come out right as a reflection in the window glass.

Is there a way to do this?  It appears that the hflip() only works with drawing charts.

I think I could make the meter backwards, but the letters would still come out wrong.

Any ideas?

  Re: Flipping a Meter
Posted by Peter Kwan on Dec-31-2010 02:45
Hi sdanks,

Yes. You can flip a meter (or any chart) too. First, use BaseChart.makeChart3 to draw the chart and get the underlying DrawArea, then use DrawArear.hFlip to flip the chart.

For example, in VB/VBScript:

Call c.makeChart3().hFlip()

Hope this can help.

Regards
Peter Kwan

  Re: Flipping a Meter
Posted by sdanks on Dec-31-2010 22:21
Ok, I have it working now.  Thank You.

Turns out I needed to do a vertical flip and not a horizontal one.

For anyone else that might have this problem,
just add the makeChart3 and getDrawArea before you output the picture:

        'Make the chart in memory and flip it.
        Call m.makeChart3
          Call m.getDrawArea.vFlip

    ' Output the chart
    Set viewer.Picture = m.makePicture