I try to rotate an image in Raphael. It should work like Free Form in Photoshop
here is my attempt:
link
to rotate the pic go to its upper right corner. (cursor should change)
You can use this plugin: http://alias.io/raphael/free_transform/
Related
I'd like to have photo overlays that are clamped at a fixed height above ground level. Is this possible?
Are there any good work-arounds for this?
Yes this is possible. Right click on the image overlay and select Properties. Then in the altitude set the absolute elevation in meters. Image of the dialog box is here (Image of Altitude Dialog Box)
I'm trying to get an image to be a background on my camera. It's one picture, it doesn't need to be repeated. It would be nice to have it stretch out when the resolution of the screen changes. I've found older tutorials that show how todo it in an older version of unity, like this one: Link
However it seems that functionality is no longer in the newest version of Unity. Does anyone have any idea how to put a single picture as background?
thanks in advance.
Add a Canvas (UI --> Canvas) to your scene and set it's render mode to "Screen Space - Camera".
Set the Canvas' Render Camera to your scenes main camera (i.e. the camera you render your 3D scene with... or the only camera in the scene ;) )
make sure the Plane Distance of the Canvas is set to the far plane of your camera. So if your far clipping plane is set to 1000 set the Plane Distance to 1000 as well (or 999, if images in the canvas happen to be clipped away by the camera). If your Plane Distance is lower than the far clipping plane of your camera, objects behind the Plane Distance will be occluded by Images on the canvas.
Add an Image (UI --> Image) to the Canvas and set its anchor presets to strech on both axes.
Set the Left, Top, Right and Bottom Parameters of the Image's Rect Transform to 0. Now the image should be full screen and adjust to any change in the aspect ratio.
That should do the trick :)
My button in photoshop looks like this:
But when I import in in my game it turns out like this:
Hopefully you can see the upper and right border has been chopped! It's a button from the new UI stuff in 4.6, and no matter I set the "Image type" to (Simple, Sliced, Tiled, Filled) and no matter setting I cant get it to show the whole image! It also does not look sharp as the photoshop image too... any clues?
This can happen if your texture is a size that is not a power of 2.
For example, make your image 256 * 128.
I am making an Drawing App in someway like Paint in Windows
I have a toolbar with many shapes button such as Rectangle, Circle, Triangle, etc. When tap a button i add a sprite with shape with button's name.
I want to add functions like this
- When tap on shape it show four 4 points each corner of shape that i can touch and drag to skew or scale.
Same as we do with an image in photoshop or MSWord
anyone have sample code or tutorial ?
Use this code for your app.
Paint
Drawing
Drawing2
I want rotate a square UIImage relative to one of it's corner, for example, it's top left corner, how can I do it in a simple way?
Check out this open source project: KitchenSink, you will want to take a look at the Anchor Point Animation example. It will show you how to animate a box at each corner.