Need clarification on Alignment Rects in iOS - ios

I am having trouble understanding what an Alignment Rect is and looks like in iOS? The post Difference between Frame Rectangle and Alignment Rectangle is confusing. For Example, I don't know what the blue square is supposed to represent? a button? a label? a view container?
Can someone please explain this in layman's terms with visual aides. I am new to iOS. Thanks in advance. :)

Related

Core Plot - Filling color for multiple plots with bounded confidence intervals

I would like to plot multiple curves on a graph. These plots would have shading of a different color for each with certain bounds around them. Please let me know if anyone has any suggestions. I will really appreciate it.
Thank you,
Santosh
P.S.: I was not able to attach an image as illustration to understand the problem statement. My apologies. I have posted this question on the Google groups. Once approved, I will edit this post to add the link from there for the image.
This isn't easy right now. You might be able to make it work by creating a closed shape with the plot. Give it data points from left to right along the top of the curve and more points that define the bottom of the curve from right to left.
Core Plot issues 13 and 99 will address this problem, although there is no timeline for a fix right now.

Locate rectangular in image with OpenCV

I'm having trouble with positioning a rectangle in an image. Please see attached photos!
I need to determine the position of the rectangle (black) in the image.
Help me write code with OpenCV. I'm trying to rotate the image based on the black rectangle.
Thank you!
P/s: Because of its ability to present my poor english, hope you understood ignored. Thank you!!
This sample image: http://i.upanh.com/rrkcnu
Now I have found a method. The information you see here: http://felix.abecassis.me/2011/10/opencv-bounding-box-skew-angle/
It can rotate images automatically!!!

iPhone App Brush effects (Based on GLPaint) [duplicate]

I am working on a drawing application based on GLPaint code. Do somebody know how to get an effect like this ? I have tried with different values for the width and the Height for the brush, but still it remains same .
Do i need to consider glBlendFunc() ? or Is it achievable thorough changing the width and the heigh of the brush.
Thanks in advance.
The easiest way to achieve that type of effect is to reducing the alpha from 1.0 to 0.7.
In PaintingView Change Brush Height and Width as shown in following image...And One more thing is that change brush image according to your requirements for more color custom effect..
Hope, this will help you..

Can glscissor clip multiple area?

i am stucked in a problem and looking for help here.
I want to clip the screen, only part of the screen can be displayed. I used glscissor and met a problem. It seems like glscissor can only difine ONE rectangle on the screen, but i hava to display multiple areas at the same time, can anyone tell me how to do?
thanks.
forgive my poor english
The scrissor is limited to one rectangle, indeed. If you want to clip to multiple rectangles, you can either draw everything once per clip-rectangle, or use the stencil buffer to mask the different areas.

Prob when rotating an uiimageview

When I am working with uiimageview, I want to rotate it with a small angle, and I did. But, in the border of uiimageview after rotating appears spikes, like a saw. I do not know why and try to fix it but I cant. Please help me.
Couple of options..
1) If you are using Core Graphics functions to rotate you can enable anti alias options
CGContextSetAllowsAntialiasing(context, true);
CGContextSetShouldAntialias(context, true);
2) Add a 1 pixel transparent border to the your image on all 4 sides.
One more thing, there is a technical term to the spikes you saw and it is aliasing. And the techniques to prevent aliasing are called anti aliasing techniques. Hope this helps.
Thanks all you guys :) My friend showed me another way to fix it. I think this way is better than using transparent border trick. He changed an attribute in info plist file, that is "Renders with edge antialisasing", to YES. And everything becomes okay :). I hope it will help someone get a same prob with me :)
Take a UIView as subView and Place UIImageView on subView.
Keep the size of subView and UIImageView Same.
Now, Use "UIViewAnimationTransitionFlipFromRight" or "UIViewAnimationTransitionFlipFromLeft" with Timer.
What you can do easily is to add a 1px transparent border around your image. So if your image is, let's say, 50x50 pixels you need to make it 52x52 such that the outer pixels are transparent. When you will rotate it should look fine now.

Resources