how make my picturebox cover only my image nt the boarder around it - visual-studio-2010

I'm doing a game app in Visual Studio 2010 windows forms, I had inserted an image in the picture box and I need to bounce my image in the form when it bounces the boarder of the picutre box is overlying on another label or it is distracting another label i.e., it is looking weird as if is is a rectangular image(but i saved the image in .png format)
so is there any one who could help me in this.
and also if possible plz notify me any best technique which is used to make the object jump on to another object(Picture).
(i.e., how to give a best movement to the ball when I press a key) :)

I'm not quite sure what you wanted, isn't the image box same size as your picture?
If there is white in your pic that you don't want to show, you should make it transparent with image editor.
Better way of moving that ball would probably be BitBlt function.
Anyway, it's hard to say what is the best way to move the ball since you did not say how you want to move it. Timer which moves ball while key is pressed is probably the simplest way to do that.

Related

Is there a way to paint every second pixel in photoshop? (For dithering)

I'm asking this question with regards to drawing pixel art. If I want to draw a line for example, I can just click on one pixel with my pencil tool, hold shift and click where I want the line to end. I was wondering if there was some way to do the same, but only paint every other pixel so I don't have to paint every other pixel individually whenever I want to achieve the dithering effect. This is especially annoying when I'm doing a long line.
Thanks for you help!
Start with a new layer,then Draw a line you want
and click "ctr + J", You can create new copy of the same line.

Decompose A Picture With PowerPoint Shapes

Kind of a weird question for you today. I was requested to take a IMAGE like the following (small portion of a rather big diagram)...
And make it into an editable diagram. I was wondering if there was anyway to decompose into PowerPoint shapes to be able to edit the lines, text, color of boxes, etc. The diagram was created in PowerPoint, then was created into a image, while the PowerPoint diagram was deleted.
Thanks for your time!
I had to do this exact thing for another reason. The closest I could get was to import the image into Photoshop or Adobe Acrobat. These programs can detect the text. Sometimes Acrobat detected text better, but to change the shapes it still had to go to Photoshop. Then, I put the text on its own layer. Next, I redrew the shapes on top of the original. Finally, I deleted the original image, leaving me with the text layers on top of the shape layers on top of a background layer(I prefer it to be alpha channel). Then any edits can be made as desired.

Is there a way to make the view called when UIImagePickerController.allowsEditing = true have a circle instead of square?

I'm trying to implement a way to allow a user to quickly edit which portion of their selected photo to be an icon. However the default state is simply a square but my icons are circles. I know I can simply make a circle from the square image they select but from a UX standpoint that's not ideal. I would prefer them to simply select an image with knowledge of it being a circle in mind.
As far as I know, there is no way to easily do this. I would suggest keeping it as a square and simply displaying the image in a round imageView.
There should be no significant difference between saving the image as a circle and displaying it as a circle.
Hope this helps.

How to control irregular Image button click area in cocos2dx

I want to use multiple irregular picture makes up a map, each picture is a button.Transparent part of the images will overwrite each other, how should I do to make their control areas does not overlap.
I use a lot of pictures makes up a large map.
And each piece of the map is irregular, but their control area is a rectangle. Because they all have transparent pixels.
I just want to make the hit area and their shape becomes the same.Some encountered a similar problem?
I have implemented one for the cocos2d-x v3.x:
https://github.com/yszheda/cocos2d-x-irregular-button
It works OK on cocos2d-x v3.2. Maybe you can have a try XD

Flash animation help

I am a complete novice when coming to using Flash but I am looking to create an animation similar to the line into text animation at:
http://www.louisebradley.co.uk/fl/
where instead of running from the top of the screen I want the line to effectively stretch across my homepage horizontally.
I have created an animated gif that does the job but it takes a long time to stretch across 974 pixels in width, and if the frames are reduced it takes away any smoothing effect. I did this in photoshop by simply creating 20 or so frames, each increasing the size of the line by 60 pixels until the full page is covered.
Would I be better off creating the effect in Flash? And if so, where on earth do I start!! Would tweening do this, and how I would I implement it?
Thanks in advance for any help!
I am assuming you are talking about the line to the left of the main navigation? If this is the case, this is being done using a mask that is tweened. You can simply draw out the shape you want "wiped" across the screen and than on the layer above it, draw a box over the shape to be animated. Right click the layer the box is on and select "mask". You can now tween the mask to move from right to left over the shape you drew and it will appear to wipe over. Just remember, whatever the mask is currently over, is what will show through from the layer that is masked. Think of the mask as a window. This can be completely done without actionscript and only using the timeline.

Resources