Skip to content

Instantly share code, notes, and snippets.

🤘

itoz itoz

🤘
Block or report user

Report or block itoz

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@itoz
itoz / gist:1302888
Created Oct 21, 2011
[AIR] ディレクトリ内ファイル一覧を取得
View gist:1302888
/**
*============================================================
* copyright(c) 2011
* @author itoz
* 2011/10/21
*============================================================
*/
package
{
import qnx.ui.buttons.LabelButton;
@itoz
itoz / gist:1292062
Created Oct 17, 2011
DisplayObjectをBase64文字列(png)に変換
View gist:1292062
// ======================================================================
/**
* DisplayObjectをBase64文字列(png)に変換.
* @param target 画像化したいDisplayObject
* @param w 幅
* @param h 高さ
*/
//import com.adobe.images.PNGEncoder;
//import mx.utils.Base64Encoder;
@itoz
itoz / gist:1286088
Created Oct 14, 2011
[jsx]TRG_LENG値の正方形に収まるように画像をpsdをリサイズ
View gist:1286088
//***********************************************
//
// TRG_LENG値の正方形に収まるようにpsdをリサイズするjsx
// author itoz (www.romatica.com)
//
//***********************************************
var TRG_LENG = 60;
@itoz
itoz / gist:1267232
Created Oct 6, 2011
AIR3 Desktop Captive Runtime Build Ant
View gist:1267232
<project name="build desktop captive runtime" default="build">
<property name="adt" value="[adtのパス]" />
<property name="cirtificate" value="[さーてぃふぃけいとパス]" />
<property name="cirtificate.pass" value="[ぱすわーど]" />
<target name="build">
<java jar="${adt}" fork="true">
View gist:1239123
package
{
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Loader;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.TimerEvent;
import flash.net.URLRequest;
import flash.system.LoaderContext;
View TranceparentGlid.as
/**
*============================================================
* copyright(c) 2011 www.itoz.jp
* @author itoz
*============================================================
*/
package jp.itoz.display
{
import flash.display.Sprite;
import flash.display.Shape;
@itoz
itoz / gist:1127000
Created Aug 5, 2011
指定連番画像を読み込んで縦長に並べるphotoshop 用 js
View gist:1127000
// ===================================================
// 指定連番画像を読み込んで縦長に並べるphotoshop 用 js
//
// - customize from "Load Files into Stack.js"
// - customize from tatsuaki.net ぐりぐり写真用 Photoshop自動化javascript
//
//===================================================
// (c) Copyright 2006. Adobe Systems, Incorporated. All rights reserved.
@itoz
itoz / gist:1074518
Created Jul 10, 2011
java android bitmap drawableの変換いろいろ
View gist:1074518
//Resource → Bitmap
BitmapFactory.decodeResource(getResources(), R.drawable.icon);
//Resource → Drawable
getResources().getDrawable(R.drawable.icon);
@itoz
itoz / gist:1074517
Created Jul 10, 2011
java android 縦長ビットマップをアニメーション用に指定サイズに切り出して配列に
View gist:1074517
public ArrayList<Bitmap> split(Drawable drawable, int width, int height)
{
// 縦長Drawableをビットマップに
Bitmap bitmapOrg = ((BitmapDrawable) drawable).getBitmap();
//分割bitmapにして配列に保存
int masterHeight = bitmapOrg.getHeight();
int max = masterHeight / height;
@itoz
itoz / gist:1064234
Created Jul 5, 2011
Android リソースの配列を取得
View gist:1064234
/**
ex)
<string-array name="entries0">
<item>値1</item>
<item>値2</item>
<item>値3</item>
<item>値4</item>
</string-array>
*/
String[] array =getResources().getStringArray(R.array.entries0);
You can’t perform that action at this time.