Questions tagged [flip]

a UI effect. for other flip types, see [flipboard] [swap] [bit-twiddling]

Describes the action of making elements in an application more aesthetically pleasing by producing a 'flip' effect.

What questions should not have this tag?

Please do not use for flipboards [flipboard], reversing arrays [swap], bit flipping [bit-twiddling]

734 questions
10
votes
1 answer

What is the API to "create applications like Flip3D"

I am trying to figure out how to use DWM to render a copy of a Window into my own desired location. The only thing I can find to tell DWM to render somewhere is with the thumbnail APIs. But MSDN's DWM Thumbnail Overview they specifically warn me…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
10
votes
2 answers

Why is Netbeans suggesting I "Flip operands of the binary operators" in my Java code

Netbeans frequently suggests that I "flip operands of the binary operator" when I'm doing mathematical calculations. For example, in the following line of code: change = 100 - price; quarters = change / 25; dimes = change % 25 / 10; …
Lauren Stephen
  • 101
  • 1
  • 1
  • 9
10
votes
1 answer

iPhone subview flip between 2 views

iPhone / Objective-C On my view a little "hover" view appears after a user clicks on a button on the main view. When the user clicks this subview I want the subview to FlipFromRight to another view (same size). The main view underneath should…
Ian Vink
  • 66,960
  • 104
  • 341
  • 555
10
votes
3 answers

f1 = flip const map. How does this function work?

Let's say we have this point-free function: f1 = flip const map I'm clueless about how exactly does it work and what it is supposed to do? I.e. I know what map, const and flip functions are. But putting them together like this just doesn't make…
Peter Bosák
  • 317
  • 2
  • 11
10
votes
2 answers

Is it possible to use unary function instead of binary in `flip`?

The type of the Prelude function flip is: flip :: (a -> b -> c) -> b -> a -> c I.e., it takes one binary function and two arguments. The type of the Prelude function id is: id :: a -> a But the type of flip id is: flip id :: a -> (a -> b) ->…
Tom Pažourek
  • 9,582
  • 8
  • 66
  • 107
9
votes
3 answers

Haskell: Purpose of the flip function?

I am a bit surprised that this was not asked before. Maybe it is a stupid question. I know that flip is changing the order of two arguments. Example: (-) 5 3 = 5 - 3 = 2 flip (-) 5 3 = 3 - 5 = -2 But why would I need such a function? Why not just…
simplesystems
  • 839
  • 2
  • 14
  • 28
9
votes
5 answers

How to make flip animations from one UIView to another when using Auto Layout?

I always used to use the following code to make a flip animation between one view and the other: [UIView transitionFromView:firstView toView:secondView duration:0.6 …
kender
  • 85,663
  • 26
  • 103
  • 145
9
votes
4 answers

Flip animation when controller pushed on iPhone

I had a look around and didn't find what I was exactly looking for. Is there a way to get a flip animation when pushing a view controller? I read that you can change the animation by using a modal view controller but AFAIK the animation for a modal…
chacha
  • 123
  • 1
  • 1
  • 7
8
votes
5 answers

Three.js: How to flip normals after negative scale

I have cloned and than flipped an object using negative scale, which causes my single sided faces to inverse. My question is, how can i flip the normals too? I don't want to use material.side = THREE.DoubleSide, for reasons: 1) didn't work properly…
7
votes
2 answers

Looking for a HTML5 / Javascript PDF Page Flipper

I'm looking for a non-Flash 'page flipper' that is capable of displaying PDFs. The example I've been given (in Flash) is: http://www.mitsubishi-motors.nl/digital/1043/index/book/outlanderbrochure.aspx I looked into Uniflip but it seems to be Flash…
Dave
  • 556
  • 1
  • 6
  • 17
7
votes
1 answer

Android - video from camera verticaly flipped

im creating app with using camera in it to record video, and I have problem with Nexus 7 2012 (don't have this problem on 2013) that recorded video (preview works right) on it is vertically flipped (I mean when you keep it in portrait position), not…
tarasmorskyi
  • 285
  • 2
  • 14
7
votes
3 answers

Flipping an angle using radians

Hello all you math whizzes out there! I am struggling with a math problem I am hoping you can help me with. I have calculated an angle of direction using radians. Within OpenGL ES I move my guy by changing my point value as such: spriteLocation.x…
Scott
  • 874
  • 3
  • 12
  • 36
7
votes
2 answers

Flip image stored as a byte[] array

I have an image which is stored as a byte[] array, and I want to flip the image before I send it off to be processed elsewhere (as a byte[] array). I've searched around and can't find a simple solution without manipulating each bit in the byte[]…
LKB
  • 1,020
  • 5
  • 22
  • 46
7
votes
3 answers

Why does OpenGL draw things upside down?

I have yet to see anyone answer this question yet. All I see is people telling them something is upside down and then someone else tells them to flip their code. But what I'm wondering is why does OpenGL flip the Y coords? It makes no sense.
user2101672
  • 71
  • 1
  • 2
7
votes
1 answer

I rotate image upside down but how to flip it horizontally

i load image from camera roll, but this image is upside down. so i wrote method to rotate it. CGImageRef imageRef = [image CGImage]; float width = CGImageGetWidth(imageRef); float height = CGImageGetHeight(imageRef); CGColorSpaceRef colorSpace =…
Tomasz Szulc
  • 4,217
  • 4
  • 43
  • 79
1 2
3
48 49