PixaPencil icon indicating copy to clipboard operation
PixaPencil copied to clipboard

[F] More Rotation

Open Noitarud opened this issue 2 years ago • 1 comments

If you can add stretch and skew as seen in MSPaint, you can add in more versatile rotation than simple 90° steps. I have two versions for you to try: Θ is Angle in radians, ±178° max. Paint only accepts integers.

First one by user IronMortality (2,3 can be done together in Paint)

  1. Horizontal skew by Angle
  2. Vertical stretch by 1/cos(θ)² (write decimal as %)
  3. Vertical skew by negative Angle
  4. Horiz+Vert stretch by cos(θ)

Second by Murrogh (1,2 together). 0. Note ±>45° may be distorted more. Rotate 90/180/270 first.

  1. Horizontal skew by Angle/2
  2. Vertical skew by negative atan(sin(θ)) in degrees (not radians)
  3. Horizontal skew by Angle/2

Enjoy!

Noitarud avatar Oct 02 '22 12:10 Noitarud

Do you mean the rotation of the bitmap itself or the rotation of the canvas? I am thinking of adding custom bitmap rotation using RotSprite, but for canvas rotation I don't see a point in having custom rotation.

therealbluepandabear avatar Oct 08 '22 05:10 therealbluepandabear

The features i am referring to are in older paint (98-XP, maybe newer but not the present 3D version). I do not know the difference between those terms, i will guess "canvas", so i will describe thus for 45° (Murrogh):

  1. Draw square/rect on the canvas
  2. On the menu bar, go: Image > Stretch/Skew… or: press Ctrl+W
  3. The next two steps will work together: A)Enter 23 for skew Horizontal; B) Enter -35 for skew Vertical; C) Ok
  4. Repeat step 2 and 3A; Ok

Besides all white space around it, your drawing will be rotated (with some inaccuracy due to integer limit, requires 22.5 and -35.26…).

Noitarud avatar Oct 24 '22 05:10 Noitarud