I am loading images in flex 3.0 , but when they are resized they look grainy and distortered . Can i give some sort of effect or dsomething to fix this .thanks
For that you need to load image as bitmap and apply smoothing to it .I have implemented this in my slide show. I found code snipet from this link , hope this is what you want
http://askmeflash.com/article/4/smoothing-resized-distorted-images-in-flex
Try this site. Flex Monkey Patches
Related
I have an image and I want to make taphold events for specific areas of the image. The image scales to 100% width of the page.
Is there any possible way in Jquery-Mobile to to get this done? I've been looking everywhere and can't seem to find a way of getting around this.
Thank you in advance
Got to use image mapping to solve this problem.
I was asking myself how I could obtain an iOS 7 like blur/transparency effect. Something like this:
(source: ilounge.com)
I'd like to apply this to a whole QDialog. I know how to obtain a nice transparency, but not how to get this blur.
Can someone help?
Thanks a lot!
Basically, you need to first get a screenshot of the desktop. Then you need to blur it. Then probably save the image to the harddrive. Then you need to set it as the background for your dialog.
And then you need to make the background for each button transparent, too.
If you use QGraphicsView or OpenGL, the last three steps may be very different.
http://qt-project.org/doc/qt-5.0/qtgui/qscreen.html#grabWindow
http://qt-project.org/doc/qt-5.0/qtwidgets/desktop-screenshot.html
Lines of code where it actually grabs the screen:
QScreen *screen = QGuiApplication::primaryScreen();
if (screen)
originalPixmap = screen->grabWindow(0);
In Qt 4.8, it used to be done this way:
http://qt-project.org/doc/qt-5.0/qtgui/qpixmap.html#grabWindow
To blur the screenshot, use this:
http://doc-snapshot.qt-project.org/4.8/qgraphicsblureffect.html
You may need to save it to the harddrive for QStylesheets to be able to find it.
To set the background image, try something like this:
http://qt-project.org/doc/qt-5.0/qtwidgets/stylesheet-reference.html#background-image-prop
Example of how to set a stylesheet:
qApp->setStyleSheet("QLineEdit { background-color: yellow }");
http://qt-project.org/doc/qt-4.8/stylesheet-examples.html
http://qt-project.org/forums/viewthread/1397
Hope that helps.
Thanks a lot for your help phyatt, I succeeded. Although my code works, the result is not as pretty as iOS':
iOS7-like blur with Qt
however, I'm going to post the whole code on my website, I'll post the link here in a while.
Stay tuned!
[EDIT] here's the link to the detailed how-to: iOS7 like blur effect with QT
I am currently working on Appcelerator (Titanium) and now I want colorize image in APP. Like I have an image and I can able to change its color through Hue or saturation just like in Photoshop. I have searched too many things but still nothing found in working condition.
Any help would be highly appreciable
Probably the best architecture is to create a webview in which you have a canvas tag, then you are able to use any canvas image manipulation library you wish. There are a number of them, but here are a few.
I have got one image like this
to only black and white colored image.
And I come across this ImageMagick resource
Does this can be used to generate black and white image from the above given image?
Does it is good to use this one?
If it is good one then does there is any documentation or tutorial on "How to use?".
UPDATE
SO GOT THE BEST SOLUTION FROM #ale0xB's SUGGESTION.
No third party api is required for doing this as apple's COREIMAGE.FRAMEWORK is the best for doing what I want to do. It's filters are working like charm :)
Thanks for the suggestion :)
I use this image filter. And it is great in speed and provides great output :)
Why would you want to use imageMagick instead of the standard Core Image to produce black and White images? I haven't used it before, but I doubt it's gonna give a much better performance than the native framework when it's just about creating a filter.
Since iOS 6 you have it really easy, have a look: Core Image filters, specially to CIColorMonochrome, which is the one you may be interested in.
If you're playing with images in your app, this is definitely worth checking: Core Image Programming Guide
How can I produce an image like this http://public.lanl.gov/herbertv/home/ ,
given the picture of my face as input?
Thanks
http://vectormagic.com/home
Try out this site:
http://www.befunky.com/
They have many artistic image effects in just a single mouse click