2024夏休み旅行 神戸・2日目【前編】 zfinchyan.hatenablog.com ↑1日目はこちら 6:50 わたしと夫だけ先に起床 前日に買っておいたお芋のパンで朝ごはん 昨日の疲れからか、なかなか息子たちが起きてこなかったので、ゆっくり寝かせてから10:00にホテルの下にあるプレイゾーンに行って、パターゴルフやバス…
iPhoneシミュレータではiPhoneの実機のように画面部分だけのスクリーンショットを撮ることができない。Command+Shift+4でiPhoneシミュレータ自体のスクリーンショットを撮ると不要なワクの部分もついてくる。これをImageMagickで捨てる。 ImageMagickのインストール。 sudo port install ImageMagick 縦方向だけ微妙に中心からずれているので -6 で補正。 convert Picture\ 1.png -gravity Center -crop 320x480+0-6 p1.png さらにそれを半分にしたければ convert Picture\ 1.png -gravity Center -crop 320x480+0-6 -size 160x p2.png これが こうなって 半分になる。 参考 ImageMagick、正
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
iPhone 用の画像ダウンロードライブラリ、ImageStore のソースコードを公開します。 http://github.com/psychs/imagestore/tree/master ライセンスは、New BSD ライセンスです。 使い方 まず、ImageStore を初期化して、インスタンス変数に保持しておきます。 imageStore = [[ImageStore alloc] initWithDelegate:self];そして、画像をダウンロードしたくなったら、getImage を呼び、画像の URL を渡してやります。 [imageStore getImage:imageUrl];getImage の呼び出しはすぐに戻り、ImageStore は裏で非同期に画像のダウンロードをはじめます。 ダウンロードが終わると、delegate の imageStoreDidGetN
UIImageに格納された画像のバイナリイメージをSQLiteのDBに保存をする方法 SQLiteの使い方はiPhoneSDKでSQLiteを使う方法に書いてあります。 サンプルとして使うテーブル サンプルとして以下のようなテーブルを定義して、格納します。 バイナリデータを格納する項目はblobで定義します。 create table IMAGETABLE ( id integer, // なんとなくID size integer, // データサイズ data blob // バイナリデータ ); 画像データの格納 UIImageのインスタンスメソッドのUIImagePNGRepresentationを使ってNSDataのインスタンスに変換してから、バイト配列としてテーブルに書き込みます。 画質よりサイズを優先するならば、UIImageJPEGRepresentationでもかまいません
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く