Set blurred image background in iOS [closed] - ios

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 9 years ago.
Improve this question
I have an image as background of an ios app.
I want to make that image blurred using the iOS7 blur effect.
How can I achieve that? Minimum iOS version support of my iOS app is 6.0.

Your image will be in a UIImageView.
You can use this code...
self.theImageView.alpha = 0.5;
just set the alpha to whatever you want.
EDIT
From the comments you are actually looking for the iOS 7 blur effect.
This is very different from setting transparency.
What you are looking for is the category available from here https://developer.apple.com/downloads/download.action?path=wwdc_2013/wwdc_2013_sample_code/ios_uiimageeffects.zip
You will need to download the category then when you set the background just blur the image before putting it into the background pattern.

There is difference between transperency and translucency.
You can adjust transperency by using 'alpha' property as mentioned by fogmeister.
This will give you somewhat similar results.
AFAIK there is no direct API to apply translucency effect on image. Alternatively You can alter the image in external image editor tool eaisily and use it in your application.
Note : For image to have translucent effect, you need to have another image/text behind it.

set your imageView alpha value t 0.4 to 0.6
or
if you want dynamic blurred image background like below
FXBlurView

Simple Process:
Use a png file as background image.
Set this image's transparency level using photoshop.

Related

How to add a mask with custom shape? [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 1 year ago.
Improve this question
I'm trying to create a mask out of a custom shape. I tried it with image masking and the result is given below. While my desire result is not exactly.
Using this Mask Image
The visual effect that I want to have:
Can anyone provide some hints on how can I achieve my desire effect.
What you have achieved via masking is working correctly. Masking works on alpha channel, transparent area vs visible area and images you posted in your question show exactly that.
Masking won't be enough for the effect you want to achieve. You need to experiment with CIFilter api.
Check out cifilter.io that shows a few examples of how these are supposed to look like. You might want to check out the source code for the same.
If you run this iOS project in Xcode, it provides a very easy way to browse and choose which effect is the closest to what you want to achieve.
Good luck!

Customizable curved Line Chart that can show image at various point [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am getting trouble with showing image on line chart at certain point on chart & also i wanted to implement curved line chart with customizable color, width & type (shown in dotted line in image) & labels at x axis & y axis.
I wanted to know is there any iOS libraries are available which provides this kind of implementation.
I know this is a duplicate question cause there are lot of questions are asked about charts for iOS but all I wanted to know is there is any library available there that can fulfill above requirement & save me lot of time for that implementation.
so far I got following libraries by doing search over google.
JBChartView
BEMSimpleLineGraph
PNchart
all off above provides line chart implementation but not curved line chart also have no provision for showing image on chart at specified point.
I am very new to chart in iOS so any help would be very much appreciated.
Thanks in advance.
Following lines can add image at given points(100,200), which will serve your purpose for drawing image.
I have developed a sample chart Library in which you will get what you need, kindly go through it. Download Library here
UIImage *image = [UIImage imageNamed:#"smiley.png"];
[image drawAtPoint:CGPointMake(100,200)];
I recommend SwiftCharts for this, it's specially designed for this kind of situations. You can add multiple layers on top of each other and generate custom views (UIView subclasses, which can be an image view or anything else) in any of these layers.
In this case you would add a layer with the curve and another layer on top of it with your custom overlays.
To produce the custom overlays you receive the complete state of each chart point, so for example you can decide if you display the image or not, or customize the image according to the chartpoint's data. See this example:
There the warning (called notifications in the example) overlays are shown only when the y value is less than 1.
There's also an example with curved line
You could use the curved line example as basis and copy-paste the notifications layer from notifications example to it and add to the chart's layers. Then customize accordingly.
(Disclosure: I'm the author)

Animated Loading GIF [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
So, my background is in the color #DBDBDB. I need an animated loading image like this one for my site's background. Unfortunately since GIFs don't support partial transparency, I'm left with a white outline in my background. I've tried to take this image and edit it to use the same background color to no avail. Then I tried to make a loading animation of my own but that came out horrible. So I do not know what to do. Can anyone help me? I would like to use this image but instead of a white outline, I would like an outline in the color #DBDBDB or a background #DBDBDB
Or to be told how to do this in CS5.5
You can use the wonderful little service AjaxLoad to generate a loading animation for any combination of colors. Just pick #DBDBDB as the background color and use "Indicator Big" as your style.
Here's your image:

how do i change only the eye color on an image (uiimage)? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have an iphone app with a picture of a face in the uiimage. I want to only change the eye color on the face by tapping on a button or tapping on a color wheel. Can you give me some help in what code I would need.
I would suggest taking a look at OpenCV. It works quite well on iOS devices, the main code comes with examples on how to build iOS applications and there is a lot of material on how to do eye detection and from there you should be able to change the colors.
Keep in mind this is not a simple task and you could accomplish with a easier thing. But you could learn a lot and there are tons of good resources around this topics.
If you want to do something faster, you might be able to just detect the touch on the UIView(enable user interaction) and present a color picker, after the color has been presented you could create a simple view on top of the image that has a circle with the color that was selected. It would be crappy, but might be a good idea to do a simple simple prototype.

Transparency vs. White background in Inkscape [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am using Inkscape and I know how to use transparency within the image, but I am annoyed that the background of the workspace in Inkscape is white. I searched through a lot of settings, but had no luck.
How do I get the workspace checkered like in GIMP?
The white workspace is really bothersome if you design something in white
You can change the background color in Inkscape by changing the document properties (in the File menu).
In particular, you can check 'Checkerboard background' to show the checkerboard if the background is set to transparent.
A quite ugly solution is to design your own checker background and have it as locked bottom layer :) Im doing something similar when im fiddling around with iOS icons or items that will be on a background.
Also as Juve mention you could try out the grids property.
First of all, a hint on transparency. If you export images with transparency for example to PDF (for printing), they are converted to bitmaps inside the PDF or produce unwanted results. Export to non-vector formats should be fine. I suggest to avoid transparency, usually there is a way to mimic transparency, e.g., by just using a light gray for shadows. Also don't use blur effects; similar problems with PDF export.
Now to the checkboard:
It's not possible, one workaround would be to add full page sized box and choose black checker board as fill. Put this box on a separate layer and lock the layer. You might also lighten that box up using one of the filters. Unfortunately this board won't adapt when zooming.
Maybe not the solution, but a related option would be the grid (press #). This is not behind your drawing but in front. It can help you with positioning. Maybe you were looking for this?

Resources