how to clear the graphics line created with finger touch in iphone app [closed] - iphone

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am creating a iphone app that creates signature it works fine but any idea how to clear the drawing from screen which user creates so that it may sign again.here is my code.
here is the link for code
http://pastebin.com/kaaMGNge

If you are using core graphics you can use :
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextClearRect(context, self.bounds);
or
CGContextFlush(ctx);
If you are using UIBezierPath then you can use :
[bezierObject removeAllPoints];

Related

Scissor Function in iphone App [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Hiii Everyone i m developing a Photo Collage App in iPhone and i want to use scissor functionality in my app so any one have idea how to get this fun. in my app and if anyone know about any open Source API to provide Scissor functionality.....
Look in this guide In short, use this function, it makes cropped image from uncropped image and cropping mask.
CGImageRef CGImageCreateWithMask (
CGImageRef image,
CGImageRef mask
);

iphone opengl es how to add an image as the background? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
this is a project of opengl es, you can run it on iphone sdk,
i want to know how to add an image as the background?
https://docs.google.com/open?id=0B8MGSbywP-HXY2YxYzk3YWItNzk3Zi00ZmNiLTk5NWYtOGY3NmU0OTRlYTM4
please give me source code.
By drawing the picture as the very first thing (in form of a textured quad). Disable depth testing and depth writes.
Update: Code for some project
Note: The actual code and structure strongly depends on the program in question!
// one possible structure
void draw(draw)
{
glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
glDisable(GL_DEPTH_TEST);
glDepthMask(GL_FALSE);
draw_background();
glDepthMask(GL_TRUE);
draw_rest_of_scene();
}

How to resize the selected image? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I want to set the image in my profile of my application.
But it is not fix in the PictureField.
I want to resize that image and display it in PictureField.
please give me the direction to do this.
For blackberry the following code will helpful to you.
Bitmap temp = Bitmap.getBitmapResource("Image.png");
Bitmap scale = new Bitmap(width, Height);
temp.scaleInto(scale, Bitmap.FILTER_BILINEAR);

PHP GD inappropriate transparancy [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
When i cropped a png image using php gd library it cropped in a strange way. As it is partially cropped. I think the transparency is not working properly.
Here is my code
imagesavealpha($this->image, true);
$bg = imagecolorallocatealpha($this->image, 0, 0, 0, 127);
imagefill($this->image, 0, 0, $bg);
imagepng($this->image,$filename);
Sounds like you like you are giving your new image the wrong size.
How do you crop the image? imagecopyresampled?
http://php.net/manual/en/function.imagecopyresampled.php

monotouch startup window [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
just wondering how to set startup window of monotouch application...
Probably the same way you do in the standard environment. Create a image, put it in resources with the name "default.png". The application objects loads and displays it automatically.(Edit: Actually, I think the system displays the image while the app loads.)