I'm writing an audio waveform editor in Cocoa with a wide range of zoom options. At its widest, it shows a waveform for an entire song (~10 million samples in view). At its narrowest, it shows a pixel accurate representation of the sound wave (~1 thousand samples in a view). I want to be able to smoothly transition between these zoom levels. Some commercial editors like Ableton Live seem to do thi
There has been many Questions recently about drawing PDF's. Yes, you can render PDF's very easily with a UIWebView but this cant give the performance and functionality that you would expect from a good PDF viewer. You can draw a PDF page to a CALayer or to a UIImage. Apple even have sample code to show how draw a large PDF in a Zoomable UIScrollview But the same issues keep cropping up. UIImage Me
PenSizeViewですが、筆先のような感じで、尖った方を選ぶと細い線、丸まった方を選ぶと太い線が描けるようにします。 用意するdelegateプロトコルはこんな感じ。delegateプロトコル?な人はモーダルビューを表示する(2)を読みましょう。 @protocol PenSizeViewDelegate -(void)penSizeView:(PenSizeView*)view size:(double)inSize; @end inSizeが0.0~1.0の範囲で値を指定してくるので、これを元にdelegate継承側は描く線の幅を1ピクセルから30ピクセルといった好きな範囲で変化させればいいわけですわ。 あと、PenColorViewで選択された色に変化するようにしたいっすね。 こんなふうに、赤だったのが指の移動に合わせて色が変わっていくようにしたいわけっす。 そのためにPenSi
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く