) 2013/7/27 iphone

Size: px
Start display at page:

Download ") 2013/7/27 iphone"

Transcription

1 ) 2013/7/27 iphone

2 DJ / : takatronix Facebook/Twitter/Skype/LINE/Weibo -> takatronix LEGO FX

3 SEXY SCAN... ( ) -

4 /1 iphone

5 Objective-C Category( )

6 Objective-C

7

8 ViewController UIImage ( д )

9

10 ( ( )

11 UIImage

12 File->New->File...

13

14

15

16

17 ViewController // -(UIImage*)monochromeFilter:(UIImage*)image{ // UIImage CoreImage CIImage* ciimage = [[CIImage alloc] initwithimage:image]; UIImage+Test.m // -(UIImage*)monochromeFilter{ // UIImage CoreImage CIImage* ciimage = [[CIImage alloc] initwithimage:self]; self( )

18 UIImage (Test) // -(UIImage*)monochromeFilter; // )

19 ViewController ) imageview.image = [self monochromefilter:image]; UIImage imageview.image = [image monochromefilter];

20 -> _imageview.image = [[image monochromefilter] vignettefilter];

21

22

23

24 ( )Context

25

26 UIImage -(UIImage*)resizedImage:(CGSize)size{ // UIGraphicsBeginImageContext(size); // ( [self drawinrect:cgrectmake(0,0,size.width,size.height)]; // UIImage UIImage* newimage = UIGraphicsGetImageFromCurrentImageContext(); // UIGraphicsEndImageContext(); } // return newimage ;

27

28 UIImage // -(UIImage*)cropImage:(CGRect)rect{ } CGImageRef imageref = CGImageCreateWithImageInRect([self CGImage], rect); UIImage *retimage = [UIImage imagewithcgimage:imageref]; CGImageRelease(imageRef); return retimage;

29

30 UIImage - (UIImage *)mirrorimage{ CGImageRef imgref = [self CGImage]; // UIGraphicsBeginImageContext(self.size); // CGContextRef context = UIGraphicsGetCurrentContext(); // X Y CGContextTranslateCTM( context, self.size.width, self.size.height); // CGContextScaleCTM( context, -1.0, -1.0); // CGContextDrawImage( context, CGRectMake( 0, 0, self.size.width, self.size.height), imgref); // UIImage *retimg = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); } return retimg;

31 CoreGraphics Y

32 CTM 変換行列 (CTM : Current Transformation Matrix)

33

34 -(UIImage*)rotateImage:(int)angle{ CGImageRef imgref = [self CGImage]; CGContextRef context; // CTM switch (angle) { case 90: UIGraphicsBeginImageContext(CGSizeMake(self.size.height, self.size.width)); context = UIGraphicsGetCurrentContext(); CGContextTranslateCTM(context, self.size.height, self.size.width); CGContextScaleCTM(context, 1.0, -1.0); CGContextRotateCTM(context, M_PI/2.0); break; case 180: UIGraphicsBeginImageContext(CGSizeMake(self.size.width, self.size.height)); context = UIGraphicsGetCurrentContext(); CGContextTranslateCTM(context, self.size.width, 0); CGContextScaleCTM(context, 1.0, -1.0); CGContextRotateCTM(context, -M_PI); break; case 270: UIGraphicsBeginImageContext(CGSizeMake(self.size.height, self.size.width)); context = UIGraphicsGetCurrentContext(); CGContextScaleCTM(context, 1.0, -1.0); CGContextRotateCTM(context, -M_PI/2.0); break; default: return self; } // ->UIImage CGContextDrawImage(context, CGRectMake(0, 0, self.size.width, self.size.height), imgref); UIImage *retimage = UIGraphicsGetImageFromCurrentImageContext(); } UIGraphicsEndImageContext(); return retimage;

35

36 takatronix

37 takatronix

homes01_P027-084_chousa_sai.indd

homes01_P027-084_chousa_sai.indd 1 027 1 028 029 030 031 032 033 2 034 035 3 3-1 1 036 2 3 037 038 4 039 3-2 1 040 041 2 category 1 042 043 category 2 044 045 category 3 046 047 category 4 048 049 category 5 050 051 category 6 052 053

More information

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 1000101_ 1000102_ 1000103_ 1000301_ 1000302_ 1000303_ 1000401_ 1000402_ 1000403_ 1000701_ 1000702_ 1000703_ 1000801_ 1000802_ 1000803_ 1000901_ 1000902_ 1000903_ 1001001_ 1001002_ 1001003_ 1001101_ 1001102_

More information

Microsoft PowerPoint - 201409_秀英体の取組み素材(予稿集).ppt

Microsoft PowerPoint - 201409_秀英体の取組み素材(予稿集).ppt 1 2 3 4 5 6 7 8 9 10 11 No Image No Image 12 13 14 15 16 17 18 19 20 21 22 23 No Image No Image No Image No Image 24 No Image No Image No Image No Image 25 No Image No Image No Image No Image 26 27 28

More information

FX ) 2

FX ) 2 (FX) 1 1 2009 12 12 13 2009 1 FX ) 2 1 (FX) 2 1 2 1 2 3 2010 8 FX 1998 1 FX FX 4 1 1 (FX) () () 1998 4 1 100 120 1 100 120 120 100 20 FX 100 100 100 1 100 100 100 1 100 1 100 100 1 100 101 101 100 100

More information

サービス付き高齢者向け住宅賠償責任保険.indd

サービス付き高齢者向け住宅賠償責任保険.indd 1 2 1 CASE 1 1 2 CASE 2 CASE 3 CASE 4 3 CASE 5 4 3 4 5 6 2 CASE 1 CASE 2 CASE 3 7 8 3 9 10 CASE 1 CASE 2 CASE 3 CASE 4 11 12 13 14 1 1 2 FAX:03-3375-8470 2 3 3 4 4 3 15 16 FAX:03-3375-8470 1 2 0570-022808

More information

プリント

プリント 1 2 3 4 End 1 2 End End 5 6 NEW PIN NEW PIN 1 1 PIN CONF 2 PIN 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53

More information

ARC Automatic Reference Counting clang 新しいコンパイラ LLVMプロジェクト (http://llvm.org/) のコンパイラ C Objective-C C++ の効率的なコードを生成 オプションなどは gcc とほぼ共通 Apple社独自の拡張機能を実現 ARC ブロックオブジェクトなど ARCを利用するには clang が必須 コンパイルオプションに

More information

iOSにおける描画と印刷のガイド (TP )

iOSにおける描画と印刷のガイド (TP ) ios における 描画と印刷のガイド 目次 ios での描画と印刷 7 初めに 8 カスタム UI ビューを導入すれば描画の自由度が高まる 8 アプリケーションはオフスクリーンビットマップや PDF に描画できる 10 印刷に関する一連のオプション 10 高解像度画面対応への変更は容易 11 関連項目 11 ios における描画の考え方 12 UIKit のグラフィックスシステム 12 ビューの描画サイクル

More information

untitled

untitled 16.4 35.6 44.6 49.3 49.3 51.8 60.5 69.0 81.0 78.2 78.7 77.9 82.9 88.4 88.5 98.7 26,931 25,31 11,03 16,256 10,32 6,872 60.36 40.80 62.26 11,189 10,62 12,56 11,46 6,985 60.95 12,87 7,919 61.53 12,44 7,657

More information

£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裵²ó ¨¡ À©¸æ¹½Â¤¡§¾ò·ïʬ´ô ¨¡

£Ã¥×¥í¥°¥é¥ß¥ó¥°ÆþÌç (2018) - Â裵²ó  ¨¡ À©¸æ¹½Â¤¡§¾ò·ïʬ´ô ¨¡ (2018) 2018 5 17 0 0 if switch if if ( ) if ( 0) if ( ) if ( 0) if ( ) (0) if ( 0) if ( ) (0) ( ) ; if else if ( ) 1 else 2 if else ( 0) 1 if ( ) 1 else 2 if else ( 0) 1 if ( ) 1 else 2 (0) 2 if else

More information

Java演習(4) -- 変数と型 --

Java演習(4)   -- 変数と型 -- 50 20 20 5 (20, 20) O 50 100 150 200 250 300 350 x (reserved 50 100 y 50 20 20 5 (20, 20) (1)(Blocks1.java) import javax.swing.japplet; import java.awt.graphics; (reserved public class Blocks1 extends

More information

bc0710_010_015.indd

bc0710_010_015.indd Case Study.01 Case Study.02 30 Case Study.05 Case Study.03 Case Study.04 Case Study.06 Case Study.07 Case Study.08 Case Study.21 Case Study.22 Case Study.24 Case Study.23 Case Study.25 Case Study.26

More information

Java updated

Java updated Java 2003.07.14 updated 3 1 Java 5 1.1 Java................................. 5 1.2 Java..................................... 5 1.3 Java................................ 6 1.3.1 Java.......................

More information

P03.ppt

P03.ppt (2) Switch case 5 1 1 2 1 list0317.c if /*/ intnum; printf(""); scanf("%d", &num); 2 if (num % 3 == 0) puts( 0"); else if (num % 3 == 1) puts(" 1"); else puts( 32"); 3 if list0318.c /*/ intnum; printf("");

More information

P.37 P.816 P.17 P.1819 contents 1 2

P.37 P.816 P.17 P.1819 contents 1 2 201211 NEW! P.37 P.816 P.17 P.1819 contents 1 2 3 4 5 6 7 8 http://www.tokiomarine-nichido.co.jp/ 1 2 16 3 11 4 1 18 9 10 5 6 11 12 18 9 10 6 7 8 13 1411 12 5 13 14 15 1615 16 21 17 18 0120-071-281 19

More information

11.6 8.6 11.9 12.0 8.3 8.9 18.1 4.6 0.2 6.1 0.2 89.5 0.1 4.6 0.2 6.1 0.2 2.2 0.1 2.7 0.0 9.21.2 2.1 1.1 3.6 0.8 18 89.5 0.1 10 9.8 0.8 4 42.71.5 18.4 0.1 15.2 0.4 95.9 0.1 94.6 0.1 98.3 0.0 97.5 0.1

More information

橡計画0.PDF

橡計画0.PDF 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 120. ( ) 620 250 29 30 31 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 Return on Risk Assets 57 58

More information

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç

C¥×¥í¥°¥é¥ß¥ó¥° ÆþÌç C (3) if else switch AND && OR (NOT)! 1 BMI BMI BMI = 10 4 [kg]) ( [cm]) 2 bmi1.c Input your height[cm]: 173.2 Enter Input your weight[kg]: 60.3 Enter Your BMI is 20.1. 10 4 = 10000.0 1 BMI BMI BMI = 10

More information

VB.NETコーディング標準

VB.NETコーディング標準 (C) Copyright 2002 Java ( ) VB.NET C# AS-IS [email protected] [email protected] Copyright (c) 2000,2001 Eiwa System Management, Inc. Object Club Kenji Hiranabe02/09/26 Copyright

More information

untitled

untitled II yacc 005 : 1, 1 1 1 %{ int lineno=0; 3 int wordno=0; 4 int charno=0; 5 6 %} 7 8 %% 9 [ \t]+ { charno+=strlen(yytext); } 10 "\n" { lineno++; charno++; } 11 [^ \t\n]+ { wordno++; charno+=strlen(yytext);}

More information

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF

やさしいJavaプログラミング -Great Ideas for Java Programming サンプルPDF pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) pref : 2004/6/5 (11:8) 3 5 14 18 21 23 23 24 28 29 29 31 32 34 35 35 36 38 40 44 44 45 46 49 49 50 pref : 2004/6/5 (11:8) 50 51 52 54 55 56 57 58 59 60 61

More information

:30 12:00 I. I VI II. III. IV. a d V. VI

:30 12:00 I. I VI II. III. IV. a d V. VI 2018 2018 08 02 10:30 12:00 I. I VI II. III. IV. a d V. VI. 80 100 60 1 I. Backus-Naur BNF N N y N x N xy yx : yxxyxy N N x, y N (parse tree) (1) yxyyx (2) xyxyxy (3) yxxyxyy (4) yxxxyxxy N y N x N yx

More information

Smalltalk_

Smalltalk_ DLLCC VisualWorks C Mac OS SSK-LampControl/ VisualWorksWithJun SSK-LampControl.h include SSK SSK FileBrowser SSK-LampControl.st FIle in SSK-LampControl File in SSK File in ( Smalltalk.SSK) ( C ) Controller

More information

8 if switch for while do while 2

8 if switch for while do while 2 (Basic Theory of Information Processing) ( ) if for while break continue 1 8 if switch for while do while 2 8.1 if (p.52) 8.1.1 if 1 if ( ) 2; 3 1 true 2 3 false 2 3 3 8.1.2 if-else (p.54) if ( ) 1; else

More information

経済産業省 地域金融人材育成システム開発事業

経済産業省 地域金融人材育成システム開発事業 3 1 1-1-1 4 1-1-2 5 1-1-3 A B C D 6 1-1-4 1 35 10 7 8 1-1-5 SWOT SWOT 9 2 3 1-2-1 10 1-2-2 11 1-2-3 ( ) ( ) 12 13 1-2-4 Coffee Break 14 15 1 2-1-1 16 2-1-2 ( ) ( ) 17 2 2-2-1 18 19 X A 50 B 40 40 40 40

More information

Condition DAQ condition condition 2 3 XML key value

Condition DAQ condition condition 2 3 XML key value Condition DAQ condition 2009 6 10 2009 7 2 2009 7 3 2010 8 3 1 2 2 condition 2 3 XML key value 3 4 4 4.1............................. 5 4.2...................... 5 5 6 6 Makefile 7 7 9 7.1 Condition.h.............................

More information

programmingII2019-v01

programmingII2019-v01 II 2019 2Q A 6/11 6/18 6/25 7/2 7/9 7/16 7/23 B 6/12 6/19 6/24 7/3 7/10 7/17 7/24 x = 0 dv(t) dt = g Z t2 t 1 dv(t) dt dt = Z t2 t 1 gdt g v(t 2 ) = v(t 1 ) + g(t 2 t 1 ) v v(t) x g(t 2 t 1 ) t 1 t 2

More information

CodeIgniter Con 2011, Tokyo Japan, February

CodeIgniter Con 2011, Tokyo Japan, February CodeIgniter Con 2011, Tokyo Japan, February 19 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 http://www.iviking.org/fx.php/ 25 26 10 27 28 29 30 31

More information

新・明解Java入門

新・明解Java入門 537,... 224,... 224,... 32, 35,... 188, 216, 312 -... 38 -... 38 --... 102 --... 103 -=... 111 -classpath... 379 '... 106, 474!... 57, 97!=... 56 "... 14, 476 %... 38 %=... 111 &... 240, 247 &&... 66,

More information

解きながら学ぶJava入門編

解きながら学ぶJava入門編 44 // class Negative { System.out.print(""); int n = stdin.nextint(); if (n < 0) System.out.println(""); -10 Ÿ 35 Ÿ 0 n if statement if ( ) if i f ( ) if n < 0 < true false true false boolean literalboolean

More information

Ver.1.0.1-1512 1. 03 2. 04 3. 05 05 4. 06 07 5. 08 6. 09 10 11 12 14 7. 19 2 1. Plus / 3 2. 1 4 3. Plus 5 4. FX 6 4. 7 5. 1 200 3 8 6. 38 25 16 9 6. 10 6. 11 6. 38 / 12 6. 13 6. 25 14 6. 0 359 15 6. 3

More information

r03.dvi

r03.dvi 19 ( ) 019.4.0 CS 1 (comand line arguments) Unix./a.out aa bbb ccc ( ) C main void... argc argv argc ( ) argv (C char ) ( 1) argc 4 argv NULL. / a. o u t \0 a a \0 b b b \0 c c c \0 1: // argdemo1.c ---

More information

bitvisor-ipc v12b.key

bitvisor-ipc v12b.key PC PC OS PC PC 1 1 2 101 101 enum tre_rpc_direction { TRE_RPC_DIRECTION_REQUEST, TRE_RPC_DIRECTION_RESULT }; struct tre_rpc_request { }; enum tre_rpc_direction direction; ulong id; ulong proc_number;

More information

index View Controller

index View Controller Creative Application Summer Camp Kengo Part - lesson 2 2011/08/26 index View Controller summer 2.1 View View (1) View View = View UIView View UIView (ex. ) UIView ( ) (, ) (c) / View (2) View 1. View 2.

More information

JavaScript 1.! DOM Ajax Shelley Powers,, JavaScript David Flanagan, JavaScript 2

JavaScript 1.! DOM Ajax Shelley Powers,, JavaScript David Flanagan, JavaScript 2 JavaScript (2) 1 JavaScript 1.! 1. 2. 3. DOM 4. 2. 3. Ajax Shelley Powers,, JavaScript David Flanagan, JavaScript 2 (1) var a; a = 8; a = 3 + 4; a = 8 3; a = 8 * 2; a = 8 / 2; a = 8 % 3; 1 a++; ++a; (++

More information

ohp03.dvi

ohp03.dvi 19 3 ( ) 2019.4.20 CS 1 (comand line arguments) Unix./a.out aa bbb ccc ( ) C main void int main(int argc, char *argv[]) {... 2 (2) argc argv argc ( ) argv (C char ) ( 1) argc 4 argv NULL. / a. o u t \0

More information

JavaScript演習

JavaScript演習 JavaScript 演習 2 1 本日の内容 prompt 関数 演習 1 演習 2 document.getelementbyid 関数 演習 3 イベント処理 基本的なフォーム テキストボックスの入力値の取得 演習 4 IE における JavaScript のデバッグ方法 1. ツール インターネットオプションメニューを実行 2. 詳細設定タブの スクリプトエラーごとに通知を表示する をチェック

More information

1 2 3 4 10 5 30 87 50 20 3 7 2 2 6 3 70 7 5 10 20 20 30 14 5 1,000 24 112 2 3 1 8 110 9 JR 10 110 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 25 30 31 32 25 A 33 B C D E F G PR PR or 34 35

More information

Catalyst 3560-C and 2960-C Getting Started Guide (Japanese)

Catalyst 3560-C and 2960-C Getting Started Guide (Japanese) Catalyst 3560-C/2960-C Express Setup 1 Express Setup Catalyst 3560-C 2960-C Cisco.com Catalyst 3560-C 2960-C Cisco.com Cisco.com Regulatory Compliance and Safety Information for the Catalyst 3560-C and

More information

kiso2-06.key

kiso2-06.key 座席指定があります Linux を起動して下さい 第6回 計算機基礎実習II 計算機基礎実習II 2018 のウェブページか ら 以下の課題に自力で取り組んで下さい 第5回の復習課題(rev05) 第6回の基本課題(base06) 第5回課題の回答例 ex05-2.c 1. キーボードから整数値 a を入力すると a*a*a の値を出力することを繰り返すプログラムを作成しなさい 2. ただし 入力された

More information

(Eclipse\202\305\212w\202\324Java2\215\374.pdf)

(Eclipse\202\305\212w\202\324Java2\215\374.pdf) C H A P T E R 11 11-1 1 Sample9_4 package sample.sample11; public class Sample9_4 { 2 public static void main(string[] args) { int[] points = new int[30]; initializearray(points); double averagepoint =

More information

Microsoft PowerPoint - WRR-celinux-upload 1.ppt

Microsoft PowerPoint - WRR-celinux-upload 1.ppt Embedded optimization (2) Starvation free real time scheduler NEC システムプラットフォーム研究所塚本明 (Akira Tsukamoto) WRR スケジュラーの設計 No starvation 従来の Linux スケジュラーではリアルタイムタスク (FIFO,RR) が存在中は 全く通常タスク (OTHER) が選択されない (

More information

Q&A目次.PDF

Q&A目次.PDF LSM5Pascal Q A Q1 Timeseries Q2 Timeseries Q3 Q4 Q5 1 Q6 Image Browser Q7 Q8 Q9 Acquire Time Series Manual Time 1 Unit sec 1 7 Cycle Delay n n 1 Time Interval n n 1 Options Settings TimeSeries Page 40

More information

untitled

untitled CA 04 1,360 100.8 0.1 83 34,176 7.61 0.40 51,532 1.3 322,736 5.9 05 1,369 100.0 0.8 80 57,269 7.86 0.43 55,001 6.7 311,107 3.6 06 1,370 99.8 0.2 83 48,250 7.73 0.46 56,369 2.5 319,129 2.6 06/ 1-3 99.4

More information

アルゴリズムとデータ構造1

アルゴリズムとデータ構造1 1 2005 7 22 22 (sakai.keiichi@kochi [email protected]) http://www.info.kochi-tech.ac.jp/k1sakai/lecture/alg/2005/index.html tech.ac.jp/k1sakai/lecture/alg/2005/index.html f(0) = 1, f(x) =

More information

KeyListener init addkeylistener addactionlistener addkeylistener addkeylistener( this ); this.addkeylistener( this ); KeyListener public void keytyped

KeyListener init addkeylistener addactionlistener addkeylistener addkeylistener( this ); this.addkeylistener( this ); KeyListener public void keytyped KeyListener keypressed(keyevent e) keyreleased(keyevent e) keytyped(keyevent e) MouseListener mouseclicked(mouseevent e) mousepressed(mouseevent e) mousereleased(mouseevent e) mouseentered(mouseevent e)

More information

r08.dvi

r08.dvi 19 8 ( ) 019.4.0 1 1.1 (linked list) ( ) next ( 1) (head) (tail) ( ) top head tail head data next 1: NULL nil ( ) NULL ( NULL ) ( 1 ) (double linked list ) ( ) 1 next 1 prev 1 head cur tail head cur prev

More information

K227 Java 2

K227 Java 2 1 K227 Java 2 3 4 5 6 Java 7 class Sample1 { public static void main (String args[]) { System.out.println( Java! ); } } 8 > javac Sample1.java 9 10 > java Sample1 Java 11 12 13 http://java.sun.com/j2se/1.5.0/ja/download.html

More information

untitled

untitled JavaFX Mobile 1. JavaFX Mobile... 2 1.1. JavaFX... 2 1.2. JavaFX Script... 3 1.2.1.... 3 1.2.2.... 5 1.2.3.... 5 2.... 7 2.1. JDK 6 Update 13... 7 2.2. NetBeans IDE 6.5.1 for JavaFX 1.1.1... 7 3.... 10

More information