¡@

Home 

2014/10/15 ¤U¤È 10:05:05

iphone Programming Glossary: cgrectgetmaxx

Rounded UIView with Shadow?

http://stackoverflow.com/questions/1225383/rounded-uiview-with-shadow

if radius height 2.0 radius height 2.0 CGFloat minx CGRectGetMinX rrect CGFloat midx CGRectGetMidX rrect CGFloat maxx CGRectGetMaxX rrect CGFloat miny CGRectGetMinY rrect CGFloat midy CGRectGetMidY rrect CGFloat maxy CGRectGetMaxY rrect CGContextMoveToPoint..

Rounded Corners on UIImage

http://stackoverflow.com/questions/205431/rounded-corners-on-uiimage

CGRectGetMinY interiorRect radius PNDegreeToRadian 180 PNDegreeToRadian 270 NO CGPathAddArc borderPath NULL CGRectGetMaxX interiorRect CGRectGetMinY interiorRect radius PNDegreeToRadian 270.0 PNDegreeToRadian 360.0 NO CGPathAddArc borderPath.. CGRectGetMinY interiorRect radius PNDegreeToRadian 270.0 PNDegreeToRadian 360.0 NO CGPathAddArc borderPath NULL CGRectGetMaxX interiorRect CGRectGetMaxY interiorRect radius PNDegreeToRadian 0.0 PNDegreeToRadian 90.0 NO CGPathAddArc borderPath NULL..

Smoothing a rounded stroke in Core Graphics

http://stackoverflow.com/questions/2181279/smoothing-a-rounded-stroke-in-core-graphics

c YES CGContextSetShouldAntialias c YES CGFloat minx CGRectGetMinX rect midx CGRectGetMidX rect maxx CGRectGetMaxX rect CGFloat miny CGRectGetMinY rect maxy CGRectGetMaxY rect CGMutablePathRef path CGPathCreateMutable CGPathMoveToPoint..

Find a point, a given distance, along a simple cubic bezier curve. (On an iPhone!)

http://stackoverflow.com/questions/4058979/find-a-point-a-given-distance-along-a-simple-cubic-bezier-curve-on-an-iphone

CGRectGetMidX rect CGRectGetMinY rect p3 CGPointMake CGRectGetMidX rect CGRectGetMaxY rect p4 CGPointMake 30 CGRectGetMaxX rect rect.size.height 0.66 UIColor blackColor set UIBezierPath bezierPathWithRect rect fill UIColor redColor setStroke UIBezierPath..

Drawing in CATiledLayer with CoreGraphics CGContextDrawImage

http://stackoverflow.com/questions/4067512/drawing-in-catiledlayer-with-coregraphics-cgcontextdrawimage

intersect the rect we have been asked to draw int firstCol floorf CGRectGetMinX rect tileSize.width int lastCol floorf CGRectGetMaxX rect 1 tileSize.width int firstRow floorf CGRectGetMinY rect tileSize.height int lastRow floorf CGRectGetMaxY rect 1 tileSize.height.. CATiledLayer self layer CGSize tileSize tiledLayer.tileSize tileSize.width scale tileSize.height scale int col floorf CGRectGetMaxX rect 1 tileSize.width int row floorf CGRectGetMaxY rect 1 tileSize.height CGImageRef image self imageForScale scale row..

Find the tangent of a point on a cubic bezier curve (on an iPhone)

http://stackoverflow.com/questions/4089443/find-the-tangent-of-a-point-on-a-cubic-bezier-curve-on-an-iphone

CGRectGetMidX rect CGRectGetMinY rect p3 CGPointMake CGRectGetMidX rect CGRectGetMaxY rect p4 CGPointMake 30 CGRectGetMaxX rect rect.size.height 0.66 UIColor blackColor set UIBezierPath bezierPathWithRect rect fill UIColor redColor setStroke UIBezierPath..

Round two corners in UIView

http://stackoverflow.com/questions/4847163/round-two-corners-in-uiview

colorSpace if context NULL return NULL cerate mask CGFloat minx CGRectGetMinX rect midx CGRectGetMidX rect maxx CGRectGetMaxX rect CGFloat miny CGRectGetMinY rect midy CGRectGetMidY rect maxy CGRectGetMaxY rect CGContextBeginPath context CGContextSetGrayFillColor..

Recreate recipient bubble behaviour in Mail.app / Three20

http://stackoverflow.com/questions/5247072/recreate-recipient-bubble-behaviour-in-mail-app-three20

textSize.height CGRect badgeBounds CGRectMake 0.0 0.0 textWidth 2.0 capPadding textSize.height double offsetX CGRectGetMaxX myRect CGRectGetMaxX badgeBounds 2.0 double offsetY CGRectGetMaxY myRect CGRectGetMaxY badgeBounds 2.0 badgeBounds CGRectOffset.. CGRect badgeBounds CGRectMake 0.0 0.0 textWidth 2.0 capPadding textSize.height double offsetX CGRectGetMaxX myRect CGRectGetMaxX badgeBounds 2.0 double offsetY CGRectGetMaxY myRect CGRectGetMaxY badgeBounds 2.0 badgeBounds CGRectOffset badgeBounds offsetX..

iPhone Glossy Icons Using Core Graphics

http://stackoverflow.com/questions/5541457/iphone-glossy-icons-using-core-graphics

context 20 quarterHeight CGContextAddQuadCurveToPoint context CGRectGetMidX rect quarterHeight 3 CGRectGetMaxX rect 20 quarterHeight CGContextAddLineToPoint context CGRectGetMaxX rect 20 0 CGContextClosePath context CGContextRestoreGState.. context CGRectGetMidX rect quarterHeight 3 CGRectGetMaxX rect 20 quarterHeight CGContextAddLineToPoint context CGRectGetMaxX rect 20 0 CGContextClosePath context CGContextRestoreGState context UIImage applyIconHighlightToImage UIImage icon UIImage..

iOS Draw Rectagle with curved ends

http://stackoverflow.com/questions/6553804/ios-draw-rectagle-with-curved-ends

rect 30 CGRectGetHeight rect 30 CGFloat radius 0.5f CGFloat minx CGRectGetMinX rrect midx CGRectGetMidX rrect maxx CGRectGetMaxX rrect CGFloat miny CGRectGetMinY rrect midy CGRectGetMidY rrect maxy CGRectGetMaxY rrect CGContextMoveToPoint context minx..

How to draw a triangle programmatically

http://stackoverflow.com/questions/6697614/how-to-draw-a-triangle-programmatically

ctx CGContextMoveToPoint ctx CGRectGetMinX rect CGRectGetMinY rect top left CGContextAddLineToPoint ctx CGRectGetMaxX rect CGRectGetMidY rect mid right CGContextAddLineToPoint ctx CGRectGetMinX rect CGRectGetMaxY rect bottom left CGContextClosePath..