I hereby claim:
- I am derek-schultz on github.
- I am d_rex (https://keybase.io/d_rex) on keybase.
- I have a public key ASCSX-H5eUuJG0fYMofXwD0Q0CJ0dCrbOalnkO5k9RtbgAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
app.directive('selecter', function ($http, $compile) { | |
var linker = function(scope, element, attrs) { | |
var createSelecter = function () { | |
$(element).selecter({ | |
callback: function (value, index) { | |
scope.model = value; | |
scope.$apply(); | |
} | |
}); | |
} |
+(UIImage*) drawImage:(UIImage*) fgImage | |
inImage:(UIImage*) bgImage | |
atPoint:(CGPoint) point | |
{ | |
UIGraphicsBeginImageContextWithOptions(bgImage.size, FALSE, 0.0); | |
[bgImage drawInRect:CGRectMake( 0, 0, bgImage.size.width, bgImage.size.height)]; | |
[fgImage drawInRect:CGRectMake( point.x, point.y, fgImage.size.width, fgImage.size.height)]; | |
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); | |
UIGraphicsEndImageContext(); |