For the time being photoeditor sdk provides an ability to customize crop ratios. But, I wonder if there any possibility to make a circle crop? Or, at least, is there any chance I can customize crop controls view?
There is no support for circle crops or customized cropping masks yet and as this is not supported by our renderer, you won't be able to add such functionality by customizing the crop controls. Sorry!
Related
We are trying to make a drawing application, for that we require code to work with images (cropping,resizing,rotating,merging etc. the works) problem is we are novices(less than five months in iOS) so we require some things along the lines of a tutorial as well as enable us build an application. Please help!
For cropping, you could follow the source code in my library. It will show you how to make a freehand crop tool and apply the cropping methods in core graphics.
https://github.com/nicholjs/BFCropInterface
I am new to J2ME. I just want to know how to put a textfield over a background image. I tried canvas but I can only set the background image and don't know how to add a textfield above the background image. Please help me.
APPROACH I: Using high level api's like Screen, Item, etc
It is NOT feasible in Java ME (CLDC) using high level api's like screens, items, etc are laid out on the display with default device styling and without the extensive layout support like Swing.
APPROACH II: Using low level api's like Canvas
To use the low level api's you need to create custom components like in J4ME. In their you layout the Canvas and paint the components on the top. So in your case you can render the image of the size of Canvas and then render the components on top of it.
NOTE: Please keep in mind this a very tedious and not so rewarding process.
APPROACH III: Use third party library
High Rated UI libraries: LWUIT and J2ME-Polish
SO: JavaME UI Libraries
I've been struggling over this for several days now and can't crack it. How do I achieve that neat photo cropping you see in iPhoto?
I tried using an NSImageView with a semi transparent CALayer allowing me to draw the cropping tool, but that doesn't work as the layer makes the image invisible (even though its transparency is set to 0.5).
I'm not asking for detailed code, just the global approach.
I found this outdated sample app from Apple which uses a subclass of NSImageView enhanced with cropping abilities. Although the project is based on PPC technology and it will not open in Xcode 4, the sources are exactly what I was looking for.
I have a squared formed image. I need to add perspective view to it and then make an animation that will restore image back to square view. This actions must work at least in all newest versions of browsers and without Flash.
I have tried to do this as follows:
Using RaphaelJS I can only clip image (create path and set fill to image url), not add perspective.
Canvas works as svg and vml in RaphaelJS... I can't add perspective with it's help.
CSS3 3D animation method rotateX adds perspective, but it is supported only by Chrome and Safary.
There is no way to add perspective to image using built in tools.
The only possible solution, I have found is using SVG add clip path to image - it doesn't add perspective view, but it's the best possible solution.
As I understand - we can use Canvas to add perspective, but you must write your own javascript algorithm to transform plain image to perspective view.
If I wanted to, using Qt, simply have some circles move around in a white box, or a graphic, what would be the best method of this?
Would I need to draw white/the graphic behind where the circle moved from every time? Is there a simple way of accomplishing this in Qt?
Create QGraphicsView object to your widget and added a QGraphicsScene to view.
Add a QGraphicsEllipseItem to scene
Use QPropertyAnimation to change the "pos" property of the ellipse item.
If you need more advanced features, you can build your own animation class on QPropertyAnimation.
enjoy it:)
Update: You can read Qt's Next Generation UI for more information.
Subclass a QWidget. Start a timerEvent() to animate the positions of the circles, then call update() at the end to schedule a repaint of the widget. Override the widget's paintEvent() - in there you draw your background and circles, using a QPainter object. The Qt Assistant has examples of how to use QPainter.
Qt also has a new animation framework that may facilitate something like this, but I have not looked into it.