Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7992041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:27:46+00:00 2026-06-04T13:27:46+00:00

Screenshot: https://i.stack.imgur.com/z95vw.jpg EDIT – In an attempt to demonstrate this issue better, it appears

  • 0

Screenshot: https://i.stack.imgur.com/z95vw.jpg

EDIT – In an attempt to demonstrate this issue better, it appears that a large image in an Immediate layer is being clipped to the size of the ImmediateLayer.

In the sample image, there’s two ImmediateLayers. The left hand size displays an image that’s bigger than the size of the ImmediateLayer and appears clipped when rotated or translated. On the right hand side a low res version of the image is scaled up and displayed in the same position. Unclipped.

In the background the original hires version of the image is shown, showing that its loaded in its entirety, and only being clipped when shown in the ImmediateLayer.

So, not a rotation issue, but an issue of can an image be displayed and translated in an ImmediateLayer without being clipped?

ORIGINAL –

In PlayN, I’m trying to rotate an image when rendering to a clipped ImmediateLayer. I can rotate an image by setting the surface’s rotation at render time, but this causes an image to be clipped then rotated. So, a star image would have its points clipped before its rotated into place.

Is this rotation code correct and the clipping a bug?

surface.save();

surface.rotate(rotation);

surface.drawImage(star, 0, 0);
surface.restore();

Bit of background, the reason for using an ImmediateLayer is to have 2 player split-screen view, side-by-side.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T13:27:47+00:00Added an answer on June 4, 2026 at 1:27 pm

    @samskivert – running your example code and comparing it to your screenshot I noticed I had completely different results – I had no clipping at all.

    Moving my project’s playn dependency from 1.2 to 1.3.1 and therefore to Lwjgl resolved the issue:

    https://i.stack.imgur.com/Mljoj.jpg

    Exact same code, wrong dependency. Thanks for your help getting to the bottom of the issue, and thanks for piling so much good work into playn!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My idea is to implement something like this: https://i.stack.imgur.com/8BmW5.png screenshot is from here: http://www.thedrum.co.uk/opinion/2012/03/08/five-ways-new-facebook-timeline-will-impact-brands
one small issue in my movieplayer..![movieplayer shows like this] 1 : https://i.stack.imgur.com/WujxB.png but i
How to do the arrows shown in this screenshot: https://i.stack.imgur.com/odpCG.png (Forget the gradients.) I
Here is a screenshot of what I'm working with at the moment... https://i.stack.imgur.com/45GX9.png The
My problem (note the yellow tiles and how they overflow): (link is https://i.stack.imgur.com/E6yDM.jpg )
Screenshot : https://i.stack.imgur.com/ACTqz.png It is pretty evident that my site renders different on Chrome
See the jsfiddle here: http://jsfiddle.net/x7N66/3/ See the screenshot here: https://i.stack.imgur.com/dC9Gp.png Note the white band
I'm looking to replicate and improve upon the following AlertDialog in my app: https://i.stack.imgur.com/aU3Ep.png
I have a XIB set up like in this screenshot: alt text http://emberapp.com/jxpx777/images/interface-builder/sizes/m.png File's
Hye guys, I included a screenshot to help clarify my problem: http://i40.tinypic.com/mcrnmv.jpg . I'm

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.