PHP GD inappropriate transparancy [closed] - image-manipulation

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

Related

how to clear the graphics line created with finger touch 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 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];

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
);

Monochrome colouring effect [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.
I want to implement gray scale level of monochrome image in iphone. if any know the links to the tutorials then plz mention them.
check out following llink may help you
https://developer.apple.com/library/mac/#documentation/graphicsimaging/Conceptual/CoreImaging/ci_tasks/ci_tasks.html#//apple_ref/doc/uid/TP30001185-CH203-SW4

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);

Texture coordinate Cocos3d [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.
Here is how I put my texture on my object :
_obj = (CC3MeshNode *)[_world getNodeNamed:#"s0"];
_obj.material.texture = [CC3Texture textureFromFile:#"objTextureLayout.png"];
My object is loaded from 3DMAX and I don't understand why my texture coordinate (from 3DMax) is lost...
An other problem, I don't understand why my normals is flipped on a simple polygon. What could I've forgotten ?
Any suggestion ? I can post some screenshot or even the model with texture for a best comprehension for anybody who can help me.