Rotation

Here’s a funny bug someone had:

They were wondering why the image on the billboard was being scaled in and out. The reason here is that the size of the image is actually increasing as it is rotated. The corners make the rectangle larger but the billboard stays the same size so there’s an implicit scale operation to make it all fit.

The way to fix it, is to either vary the width of the billboard using the dimensions of the image or to rotate the billboard itself.

Advertisements

One Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s