201009661 九、發明說明: 【發明所屬之技術領域】 本發明涉及圖像縮放技術,特別是—種 電子設備及其畫面比例調節方法。 /、有觸摸屏的 【先前技術】 目前觸摸屏技術變得越來越普及,因為其 功能多樣且價格逐漸下降,職屏允許用 二 現網頁的放大縮小或文件瀏覽,例如蘋 9 ”貫 县益由· 木的iPhone即 疋藉由則日來實現網頁的放大縮小或文件 是,對於手指不靈便的人來說,需要 此。仁 現此功能,操作上存在移動困難。⑽彻兩手指來實 【發明内容】 鑒於此,有必要提供一種晝面 的具有觸摸屏的電子設備。 例μ操作更為簡單 法。有必要提供一種操作更為簡單的畫面比例調節的方 一種畫面比例調節方法,包括如下步驟: 記錄用戶在觸摸屏上的晝圈操作產生的晝圈轨跡 檢測所述畫圈軌跡包圍的畫圈面積; 計算所述晝圈面積與預設面積的比例關系; 根據所述比例關系對顯示畫面進行比例調節。 -種晝面比例調節方法,包括如下步驟: 記錄用戶在觸摸屏上的晝圈操作產生的晝圈軌跡· 檢測所述晝圈轨跡的晝圈方向,包括順時針和逆時針; 201009661 根據所述畫圈方向選擇放大和縮小的比例調節方式, 並對顯示晝面進行比例調節。 一種具有觸摸屏的電子設備,包括感應單元,用於感 應用戶的觸摸操作,生成相應的轨跡數據,所述電子設備 還包括: 處理單凡,用於在檢測到所述軌跡數據為一個封閉區 域時,計算出軌跡數據所包圍區域的面積訊息; ❹ 執行單元,用於並根據所述面積訊息與預設面積的比 例關系對顯示畫面進行比例調節。 使用上述畫面縮放方法和具有觸摸屏的電子設備時, 用戶只要單手指晝圈操作即可實現對所選區域的放大或者 縮小,操作簡單便捷。 【實施方式】 戶丰#_ 4提出了—種畫面縮放方法,其可以根據用 ❹ 作二區域大小對顯示晝面進行對應的放大或縮小動 。/亥方法適用於各種可㈣觸摸設備,如行動電話、可 檇式播放器、數碼相機等。 如圖1所示’其為一較佳實施方式的 法步驟流程圖,包括如下步驟: 即方 記㈣戶在觸摸屏上的_^產生^ 圈軌跡。請參_ 2和圖3,觸摸屏 ^旦 順時針和逆時針畫圈操作產生的畫圈軌跡用戶 步驟S303,檢測晝圈執跡包圍的金 以按昭書圈卩妁餅勹化 及圈面積。該面積可 畫圈&域所包括的畫素點的數量或觸摸矩陣的數量 201009661 進行計算得來。 步驟S305,檢測畫圈軌 逆時針。該順± |圈方向,包括順時針和 作。4時針㈣時針分別對應著圖像放大和縮小操 步驟S307,計|金固; 實施方式中m| 積”預設面積的比例關系。; 二= 面積為觸摸屏的顯示面積,以-❸ 例。因從而更好的實現用戶需要_心201009661 IX. Description of the Invention: [Technical Field] The present invention relates to an image scaling technique, and more particularly to an electronic device and a method for adjusting the aspect ratio thereof. [Previous technology with touch screen] At present, touch screen technology has become more and more popular, because its functions are diversified and the price is gradually decreasing. The job screen allows you to use the zoom-in or file browsing of the two-page webpage, for example, Ping 9 · The iPhone of the wood is used to realize the enlargement or reduction of the webpage or the file. It is necessary for people who are not comfortable with the finger. This function is difficult to operate. (10) The two fingers are solid. SUMMARY OF THE INVENTION In view of the above, it is necessary to provide an electronic device with a touch screen. The operation of the μ is simpler. It is necessary to provide a method for adjusting the aspect ratio of the screen with simpler operation, including the following steps. : recording a circle track generated by the user's loop operation on the touch screen, detecting a circled area surrounded by the circled track; calculating a proportional relationship between the circle area and the preset area; and displaying the display according to the proportional relationship Proportional adjustment - A method for adjusting the proportion of the face, including the following steps: Recording the user's operation on the touch screen昼 轨迹 · 检测 检测 检测 检测 检测 检测 检测 检测 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 2010 The electronic device with a touch screen includes a sensing unit for sensing a touch operation of the user to generate corresponding trajectory data, and the electronic device further includes: processing unit for detecting that the trajectory data is a closed area Calculating the area information of the area surrounded by the trajectory data; ❹ executing unit for proportionally adjusting the display screen according to the proportional relationship between the area information and the preset area. When using the above screen zoom method and an electronic device with a touch screen The user can zoom in or out on the selected area with a single finger loop operation, and the operation is simple and convenient. [Embodiment] Hu Feng #_ 4 proposes a kind of picture zooming method, which can be used according to the size of the two areas. Appropriate enlargement or reduction of the display face. /Ha method is applicable to various (four) touch settings For example, a mobile phone, a portable player, a digital camera, etc. As shown in FIG. 1 , it is a flow chart of a preferred embodiment, including the following steps: that is, the party (4) on the touch screen _^ Generate a circle track. Please refer to _ 2 and Figure 3, the touch screen ^ clockwise and counterclockwise circle operation generated by the circle of the user step S303, detect the gold surrounded by the circle to mark the book And the area of the circle. The area can be calculated by the number of pixel points included in the circle & field or the number of touch matrices 201009661. Step S305, detecting the circle of the circle counterclockwise. The direction of the circle is included Clockwise and clockwise. The 4 o'clock (four) hour hand corresponds to the image enlargement and reduction step S307, respectively, the ratio of the preset area of the m|product in the embodiment. ; 2 = The area is the display area of the touch screen, with -❸. Because it is better to achieve user needs
為此本實=操作更為順手’且 應著縮=式中,順時針對應著放大操作,逆時針· bp2S3G9’根據晝圈方向選擇放A和縮小處理方式, 述比例關係對顯示畫面進 的顯示畫面可以是用戶選擇的圖像或文字,也: U覽器顯不框,還可以是整個觸摸屏顯示的介面等。 ^用上述畫面縮放方法時,用戶只要單手指操 實現對所選區域的放大或者縮小,操_單便捷。上述放 大和縮小㈣於比例調節的—種,其他實施方式中可以只 有放大和縮小功能中的一種。 、 如圖4所示’其為—較佳實施方式的具有觸摸屏的電 子設備100的功能模組圖。電子設備1〇〇包括感應單元 200、處理單元201及執行單元2〇2。 感應單元200用於感應用戶的觸摸操作,產生複數座 標數據值減複數座縣據值生成減的軌跡數據。 處理單元201用於在檢測到所述軌跡數據為一個封閉 201009661 區域時,計算出軌跡數棱的 拿。所、+、古a ^ ό _的方向吼息和包圍區域的面積訊 是逆時針。 觸鉍時移動的方向是順時針還 執2G2用於根據方向訊息選擇放大和縮小處理 :隹並:據所述面積訊息與螢幕面積的比例關系對顯示 大或縮小處理。其他實施方式令,所述勞幕面 積也可為其他大小的預設面積。 ❿=用上述電子設備⑽時,用戶只要單手指晝圈操作 p可實現對晝㈣放大或者縮小,操作簡單便捷。 本技術領域的普通技術人員應當認識到,以上的實施 =式僅是用來說明本發明,而並非用作為對本發明的限 定’、要在本發明的實質精神範圍之内,對以上實施例所 作的適當改變和變化都落在本發明要求保護的範圍之内。 【圖式簡單說明】 圖1為一較佳實施方式的晝面比例調節方法步驟流程 Φ 圖。 圖2為圖1所示的畫圈操作示意圖。 圖3為圖1所示的另一方向的晝圈操作示意圖。 圖4為一較佳實施方式的具有觸摸屏的電子設備 的功能模塊圖。 【主要元件符號說明】 觸摸屏 10 畫圈執跡 104、 感應單元 200 執行單元 202 102電子設備 100 處理單元 201 100 201009661 晝面比例調節方法步驟流程 S301〜S309For this reason, the real = operation is more convenient 'and should be reduced in the formula =, in time for the amplification operation, counterclockwise · bp2S3G9 'select A and reduce processing according to the direction of the circle, the proportional relationship to the display screen The display screen can be the image or text selected by the user, and also: the U-viewer is not displayed, and can also be the interface displayed by the entire touch screen. ^ When using the above screen zoom method, the user can zoom in or out on the selected area with a single finger operation. The above amplification and reduction (4) are proportional to the adjustment, and in other embodiments, only one of the enlargement and reduction functions may be used. 4 is a functional block diagram of the electronic device 100 with a touch screen of the preferred embodiment. The electronic device 1A includes a sensing unit 200, a processing unit 201, and an execution unit 2〇2. The sensing unit 200 is configured to sense a touch operation of the user, and generate trajectory data of a plurality of coordinate data values and a plurality of county data values. The processing unit 201 is configured to calculate the number of tracks when the track data is detected as a closed 201009661 area. The direction of the suffocation and the area of the surrounding area of the +, the ancient a ^ ό _ is counterclockwise. When moving, the direction of movement is clockwise. 2G2 is used to select the enlargement and reduction processing according to the direction message: 隹 and: according to the ratio of the area information to the screen area, the display is enlarged or reduced. In other embodiments, the screen area may also be a preset area of other sizes. ❿=When using the above electronic device (10), the user can zoom in or out (昼) by simply operating the finger with a single finger, and the operation is simple and convenient. It should be understood by those skilled in the art that the above embodiments are merely illustrative of the invention, and are not intended to limit the invention, and are intended to be within the scope of the spirit of the invention. Appropriate changes and variations are intended to fall within the scope of the invention. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a flow chart Φ of a step of adjusting the kneading ratio of a preferred embodiment. FIG. 2 is a schematic view of the circle operation shown in FIG. 1. FIG. FIG. 3 is a schematic view of the operation of the loop in the other direction shown in FIG. 1. FIG. 4 is a functional block diagram of an electronic device with a touch screen in accordance with a preferred embodiment. [Description of main component symbols] Touch screen 10 Circle enclosing 104, Induction unit 200 Execution unit 202 102 Electronic device 100 Processing unit 201 100 201009661 Knob scale adjustment method Step flow S301~S309