apply mask/filter in a image flex mobile (ios) - flex-mobile

how can I add a mask/filter in some image ?!
It's like instagram filter ! (I have a image , then I choose a filter, then I put everything in a single image.)

Related

How to change avatarView image same sender(user) different avatarView image if we want? messageKit

I want to make changes to the incomingAvatarView while using the MessageKit library.
This change will not change in previously uploaded avatarView images. Incoming avatar will change according to the answer given.
If I had to explain it with pictures, I can say it this way.
enter image description here

How to create background image for site

I have just made background image for my web-site. But I'm confused - if user have resolution no similar mine, then he will see wrong image right? How can I fix this problem and what resolution is normal for browser?
They will see the correct image, but it will repeat itself.
You have two options:
Create an image, which looks nice when it's repeated. Then you just have to exchange the image.
otherwise you have to disable image repeating, so that the image is just displayed once.
see: http://www.w3schools.com/cssref/pr_background-repeat.asp
It usually looks nice if you define an appropriate background-color after the image ends.
Otherwise there are more advanced ways for full scale background images: http://css-tricks.com/3458-perfect-full-page-background-image/
The "normal" Screen resolution on webpages range from the Smartphone screen (320x480) to 30" screens (2.560 x 1.600). Those are the both (not so uncommon!) extremes. The average is between 1024x768 and 1920x1200.

Fetch custom size Facebook profile picture

I would like to retrieve a Facebook user's profile picture, but at a custom size (e.g.: 40px x 40px). Is this possible, or only the default values (normal, square, small and large) are fetchable?
Only those three values are valid from the API. For a 40x40 image though, you can easily resize the 50x50 (square) image.
Per this blog post it's now possible to get custom profile picture sizes:
The blog post was deleted, but it's still possible to get a custom profile picture size using the following parameters:
https://graph.facebook.com/<ID>/picture?width=<width>&height=<height>
Only normal, square, small, and large are available, but if you are putting them on a website you can put it into a fixed size div to clip it, or you can download the image programmatically and re-size it yourself.

Image with gestures - phonegap

I'm making an application who needs to display a map, contained in a large image file (png). The user must be able to zoom in/out the image and drag it in order to scroll the image with touch gestures.
I'm not sure that you get it, but i want to display a single image as it would be displayed by the "Photos" iphone application.
I would like some hints about the best way to do it with those gesture and with a navigation header in order to leave the image view.
Thanks in advance if you can give me any help about this issue because I did not find any clue on the phonegap doc.
/ouss
Why don't you use the built inn components for this?
Sounds like you need to wrap an ImageView inside a ScrollView and a HorizontalScrollView, then rescale the image by handling onTouch-events.
Take a look at the MapKitPlug plugin:
https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/MapKitPlug
Good Luck!
I would use http://cubiq.org/iscroll-4 which has some really slick image zoom going on. You can also start loading new images after certain zoom levels for finer grains of quality.
I would suggest Child Browser phonegap plugIn.
It is very simple and easy to implement.
It supports loading page from a url as well as you can show any kind of images.(png, jpg, jpeg, bmp and gif)

How do I specifically get a static Web image url and apply it to an iPhone application blank view?

In building an iphone app, I can render a blank view, (say that's all I have, just a generic, full screen view) and I want to populate in that view an image from the web, say, "http://www.mypicture.com/mypicture.jpeg". I want to do this as fast as the network allows and not use the photo roll or any part of the os that the user can see. How would I implement this? Also, how do I capture an snapshot (fullscreen or not) image from Google street view without the user knowing so? Thanks all for your anticipated time...xobmo
Use this example, replacing the html with an <img> tag with your image as the src attribute.
Alternately, you can base64-encode your image as in this example, but I figure you'll probably do what's easiest.