Questions tagged [clip]

Clipping is restricting the surface on which a drawing is made

Clipping is restricting the surface on which a drawing is made Clipping can also include gaps in a surface. Clips can be rectangle, ellipse, or any other kind of geometry depending on the support of the graphical engine

732 questions
0
votes
4 answers

Resizing Movie Clips AS3

Ok, so I have a game in flash, a platform game.In this game you have to jump over spikes.So I create the spike and convert it to a symbol, a movie clip.When it registers as a movie clip, it's not a triangle (like the spikes) but instead, a…
user1666767
  • 117
  • 3
  • 13
0
votes
1 answer

Create several bitmaps from a large bitmap using paths or rects

So I have a bitmap.. Now I want to create 5 smaller bitmaps from specific regions of the original bitmap. Is it possible to do this with paths or rects? for instance : newBitmap = OriginalBitmap.copyFromArea(Path data | rect)
renners
  • 45
  • 6
0
votes
1 answer

How can I get the property 'clip' in css and change it with javascript?

I have wrote code like that:
Chard
  • 11
  • 3
0
votes
1 answer

Random Background Image For Background Clip

On my personal site: http://pavelrozman.com/ the background photo reloads on every refresh with some javascript. Then, I stumbled upon a cool clipping mask tutorial on the web. h1 { font-family: Arial; font-size: 5em; text-align:…
user1877401
  • 17
  • 1
  • 6
0
votes
2 answers

java based music player recognising only .wav file formats

i m trying to make a simple java frame based music player. i have succeded in doing so, but if it plays only .wav files. even if i change the load file condition to .mp3 and then load up an mp3 file, it shows an UnsupportedAudioFileException..…
0
votes
1 answer

Prevent drawing over the same area of a Graphics2D

Language: Java. Hi, I need to prevent drawing over the same location of a Graphics2D more than once. For example, if the user draws using a BasicStroke with a round cap and a width of 10 over a certain area, that same area cannot be drawn on a…
user1349637
  • 227
  • 2
  • 12
0
votes
1 answer

clip on intersection with KineticJS Wedges

I'm a KineticJS beginner, and I'd like to make two draggable wedges that change to a specific color at their intersection. I've seen the shape clipping tutorial and the shape intersection questions on this forum. I understand that the general…
Mae
  • 1
  • 1
0
votes
1 answer

Android: clip background image to screen boundaries

Looking around, I see many questions that are very similar but not exactly like mine. The questions I've seen either want to avoid clipping, or clip to some complex path. I just want a simple clip. Here goes. I want to create an Android app which…
QED
  • 9,803
  • 7
  • 50
  • 87
0
votes
1 answer

Java game sound effects isn't working correctly

I'm trying to do my school project (a simple Java game) and I cant's get the sound effects work. I'm doing it using Clip and now my playSound-method looks like this: public void playSound(File filename) { try { AudioInputStream sound =…
0
votes
1 answer

How to save cropped image with UIBezierPath

I have an app that show an image and the user can "cut" some part of the image. My problem is that I can´t save the part cutted. References: How to save the UIImage after multi point cropping the image? This is the method to crop the image: -…
Kaisser
  • 93
  • 3
  • 8
0
votes
1 answer

transforming the Clip of a UIElement

I am using C#, Silverlight, Visual Studio for Windows Phone 7. I would like to get the Clip of a UIElement that includes any transform that has been done on the UIElement. This example gives me the Clip but does not include any transform from the…
joulesm
  • 642
  • 1
  • 6
  • 28
0
votes
1 answer

multiple geometry clips on a UIElement

I am using C#, Silverlight, Visual Studio for Windows Phone 7. Is there a way to give a UIElement multiple Geometry clips? Something equivalent to: Path myPath = new Path(); myPath.Data = myRectangle; // say of size 100x100 myPath.Clip = myClipRect;…
joulesm
  • 642
  • 1
  • 6
  • 28
0
votes
1 answer

How to preload sound and play it in Java simply?

How to preload sound an play it in java from time to time? I found example including Clip.open(AudioInputStream) method but nowadays API has no one. I know I can open AudioInputStream and SourceDataLine and copy data from one to other but is there…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
0
votes
1 answer

Replacing default DTMF tones with customized tones in Android

I did a lot of research regarding transferring a custom sound clip(wav,mp3 etc) to an ongoing GSM voice call in Android so that the other party can hear it but it seems it cannot be done. But when in a call if I press a key(1,2,3,4 etc) that key's…
dmn
  • 164
  • 2
  • 10
0
votes
2 answers

Scroll a div when hovering over a clipped item

This is a tricky problem to describe...I have a fixed height
on my page with a bunch of content items inside. Each item is a square
, floated left, so they fill in the area left to right and top to bottom. If there are too many items to…
daGUY
  • 27,055
  • 29
  • 75
  • 119