# How to rotate a bitmap or polygon.

## Recommended Posts

Hi all (A:NAV1 DME,nmiles) 3.4 * (L:HSI RANGE, number) 80 / /(A:NAV1 RADIAL,Radians) (A:GPS GROUND MAGNETIC TRACK, Radians) - Puts a bitmap or poly over or near your waypoint or navaid in the EHSI but how can you rotate the image.

##### Share on other sites
 Help AVSIM continue to serve you!Please donate today!

Hi,May be it helps to add:.....Jan"Beatus ille qui procul negotiis..."

##### Share on other sites

Hi Jan I have a shift and rotate to locate the bitmap position, Can I have another rotate to turn the bitmap in the same element.

##### Share on other sites

Hi Paul,You might use and to locate the bmp position, and then rotate the bitmap as wished, (ie over its axis).Tom

##### Share on other sites

Hello Tom Yes that could solve it, Can you give an example of the Shift x and Y Syntax. I have not seen this before and not making any progress. Paul

##### Share on other sites

Hi,I use:12Jan"Beatus ille qui procul negotiis..."

##### Share on other sites

Hi Paul,This comes from an unfinished code of my ND that is still in development, but could be a useful example.First I place the bmp ref coordinates (0,0) on the upper vertex of the aircraft symbol. Then use this: @ValidInt @XposInt@YposInt **** Now that the bmp is properly positioned, from here you can proceed to rotate it as wished *****and the macros: (L:WpAngle,radians) sin (@c:NearestIntersectionCurrentDistance,nmiles) * /-/ (L:WpAngle,radians) cos (@c:NearestIntersectionCurrentDistance,nmiles) * /-/ :0 (L:IntCL,enum) s0 (>@c:NearestIntersectionCurrentLine) l0 5 < if{ l0 ++ (>L:IntCL,enum) g0 } (@c:NearestIntersectionCurrentTrueBearing,radians) (A:GPS MAGVAR, radians) - (A:GPS Ground Magnetic Track, radians) - /-/ (>L:WpAngle,radians) 1Hope this makes sense to you :-)Tom

##### Share on other sites

Hello Tom Nice one, got what I needed works OK. Now added (L:SetHoldTrack, degrees) can change inbound track in FMC (L:TurnDirectionHold,number) 1 == (L:SetHoldTrack, degrees) dgrd (A:GPS Ground Magnetic Track, radians) - (L:Holdrad,radians) (A:GPS MAGVAR, radians) - (A:GPS Ground Magnetic Track, radians) - /-/ cos (L:Holddist, nmiles) * /-/ (L:HSI RANGE, number) 80 / /(L:Holdrad,radians) (A:GPS MAGVAR, radians) - (A:GPS Ground Magnetic Track, radians) - /-/ sin (L:Holddist, nmiles) * /-/ (L:HSI RANGE, number) 80 / / Got work out how to draw a hold pattern with polyline now. Thanks Paul

## Create an account

Register a new account

• Tom Allensworth,
Founder of AVSIM Online

• ### Hot Spots

• Flight Simulation's Premier Resource!

AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!