201145153 六、發明說明: 【發明所屬之技術領域】 [0001] 本發明涉及一種印表機及其圖片列印的方法’尤指一種 具有圖片編輯功能的印表機及其圖片列印的方法。 [先前技術】201145153 VI. Description of the Invention: [Technical Field] The present invention relates to a printer and a method for printing the same, particularly a printer having a picture editing function and a method for printing the same. [Prior technology]
[0002] 目前,使用印表機列印圖片時,需要先將印表機與一電 腦相連接。使用者將圖片或者照片存放在電腦中’並且 在電腦中設置需要列印的張數。或者,在電腦中對待列 印的圖片或者照片進行修改,例如,裁切、變換亮度等 等。當使用者對待列印的圖片或者照片修改好後,即可 藉由印表機對自己喜歡的圖片或者照片遂行列印。 [0003] 但是,這種列印方式需要使用者先將數碼相機中的圖片 或者照片拷貝到電腦中,然後才能藉由印表機進行列印 。這樣,對於使用者來說,不是十分方便。 【發明内容】 [0004] 鑒於以上内容,有必要提供一種方便列印的具有圖片編 輯功能的印表機及其圖片列印的方法。 [0005] 一種具有圖片編輯功能的印表機,所述印表機包括: [0006] 一存儲單元,存儲有一初始圖片, _ 一顯示幕,顯示調節所述初始圖片的亮度的亮度條及調 節點; 圃-顯减組,用於麟—㈣Μ赫幕上進行顯示 099117583 表單編號Α0101 第3 寅/兵 0992031233-0 201145153 [0009] 一識別模組,用於識別用戶在所述顯示幕上對所述初始 圖片進行的變換操作; [0010] 一處理模組,用於根據識別模組識別的變換操作產生一 變換圖片並傳給顯示模組即時地顯示於顯示幕,所述處 理模組包括: [0011] —獲取子模組,用於獲取所述顯示幕上的亮度條的長度 值及獲取所述顯示幕上的調節點在所述亮度條上所移動 的距離; [0012] —計算子模組,用於計算所述距離佔所述亮度條的長度 值的比例; [0013] 一調節子模組,用於根據所述比例得出所述初始圖片需 要調節的亮度; [0014] —列印模組,用於列印所述變換圖片。 [0015] 一種在印表機上實現列印圖片的方法,包括以下步驟: [0016] 一存儲單元存儲有一初始圖片; [0017] —顯示模組用於將所述初始圖片在一顯示幕上進行顯示 9 [0018] 所述顯示幕顯示調節所述初始圖片的亮度的亮度條及調 節點; [0019] 一識別模組識別用戶在所述顯示幕上對所述初始圖片進 行的變換操作; [0020] —處理模組根據用戶的操作對所述初始圖片進行處理並 099117583 表單編號A0101 第4頁/共19頁 0992031233-0 201145153 [0021] [0022] [0023] 〇 [0024] [0025] 產生一變換圖片; 一獲取子模組獲取所述顯示幕上的亮度條的長度值及獲 取所述顯示幕上的㈣點在所述亮度條上所移動的距離 例; 計算子模組計算所述距離佔所述亮度條的長度值的比 [0026] G [0027] 一調節子模組根據所述比例得出所述初始圖片需要調節 的亮度; 一列印模組列印所球變換圈片。 與習知技術相比,上述具有圖片編輯功能的印表機和在 印表機上實現列印圖片的方法中,處理模组根據用戶的 操作對所述初始圖片進行處理並產生一變換圖片,列印 模組列印所述變換圖片,方便快捷。 【實施方式】 請參閱圖1,為本發明具有圖片編輯功能的印表機的一奉 佳實施方式的電子裝置硬體結構圖。所述印表機1〇〇包寺 —存儲單元11〇、一顯示單元(顯示幕)12〇、— $ 5寅取;f| 組1 3 〇、一顯示模組14 0、一識別模組1 5 0、一處理棋乡 160、一列印模組17〇及一記錄模組180。 所述讀取模組130用於從印表機100的存儲單元丨1〇中上 取—初始圖片。所述顯示模組140用於將所讀取的初妖 片在顯示單元12〇上進行顯示。所述識別模組m “ 別用戶 099117583 示單元120上進行顯示。所述識別模組 ’在所述顯示單元120上對所述初始 操作。所述處理模組160用於根據用戶的 ί A0101 第5真/共19頁 圖>1 的操$ 201145153 圖片處理並產生一變換圖片。所述列印模組170用於列印 所述變換圖片。在一較佳實施方式中,在此所述顯示單 元120的顯示幕為一觸摸屏,對應觸摸操作的方式可為手 指觸摸,也可為觸摸筆之類的觸摸。 [0028] 請同時參閱圖2,本發明在印表機上實現列印圖片的方法 的較佳實施方式中,所述方法包括以下步驟: [0029] 步驟S10 :所述讀取模組130從印表機100的一存儲單元 110中讀取一初始圖片; [0030] 步驟S11 :所述顯示模組140將所讀取的初始圖片在一顯 示單元120上進行顯示; [0031] 步驟S12 :所述識別模組150識別用戶在所述顯示單元 120上對所述初始圖片進行的變換操作; [0032] 步驟S13 :所述處理模組160根據用戶的操作對所述初始 圖片進行處理並產生一變換圖片; [0033] 步驟S14 :所述列印模組170列印所述變換圖片。 [0034] 請參閱圖3,所述顯示模組1 4 0用於將所讀取的初始圖片 在顯示單元120上進行顯示的程式為一第一程式,所述處 理模組160根據用戶的操作對所述初始圖片進行處理並產 生一變換圖片的程式為一第二程式,所述第一程式與所 述第二程式藉由一内部程式溝通服務(Inter Process Communication, I PC)進行交流用以減少記憶體的佔 用。本發明架構於android™作業系統中,每一支程式所 佔用的記憶體大小不能超過設定值。這樣,將使用者在 099117583 表單編號A0101 第6頁/共19頁 0992031233-0 201145153 不同介面上的操作來使用不同的程式完成,用以減少記 憶體的佔用。所述變換圖片緩存於所述印表機100的存儲 單元110中,用以列印所述變換圖片。 [0035] 所述内部程式溝通服務設置所述第一程式中圖片的屬性 ,並傳送給所述第二程式,用以在第二程式中對所述圖 片的屬性進行變換。例如,所述第一程式中會存儲有圖 片的亮度值,所述第二程式會獲取所述亮度值,並在此 基礎之上根據使用者的調節改變圖片的亮度。 ^ [0036] 請參閱圖4,所述變換圖片包括對所述圖片進行剪切、旋 〇 轉、變亮後所生成的圖片。本發明在印表機上實現列印 圖片的方法的較佳實施方式中還包括對圖片所作的其他 變換。所述顯示幕上顯示有一包括調節點的亮度條,根 據所述調節點移動的距離與所述亮度條的比例來得出調 節後的亮度。所述處理模組160調節所述圖片的亮度的方 法包括以下步驟: [0037] 步驟S30 :獲取亮度條的長度值。 ❹ [0038] 步驟S31 :獲取所述調節點在所述亮度條上所移動的距離 〇 [0039] 步驟S32 :計算所述距離佔所述亮度條的長度值的比例。 [0040] 步驟S33 :根據所述比例得出所述初始圖片需要調節的亮 度。 [0041] 請參閱圖5,當所述印表機100列印所述變換圖片後,所 述記錄模組180記錄列印所述變換圖片的數量。本發明在 099117583 表單編號A0101 第7頁/共19頁 0992031233-0 201145153 記錄 印表機上實現列印圖片的方法的較佳實施方式中 列印所述圖片的數量的方法包括以下步驟: [0042] [0043] [0044] [0045] [0046] [0047] [0048] [0049] [0050] 的縮略圖 步驟S4G :所述顯示單元12()顯示複數初始圖片 步驟S41 :選中—待列印的圖片並選擇需要列印的數量。 步驟S42 :列印所述制印®片並記錄所述圖片-共被列 印的數量。 請參閱圖6,所述顯示單元120上顯示有_用以剪切圖片 的剪切框,所述剪切框根據調節的比例得出剪切後的圖 片。本發明在印表機上實現列印圖片的方法的較佳實施 方式中,所述處理模組160剪切蹐片的方法包括以下步驟 步驟50 :獲取圖片&寬度與高度。設定剪切框為一矩形 框。 :* · ; ;……. .·. . 步驟51 :當剪切框被改變時,獲取#切框的左上角頂點 的座標值(xl,yl)和右T角頂點的座標值(x2,y2) 步驟52 :計算橫坐標χΐ,χ2與寬度的比例以及縱坐標 y 1,y 2與面度的比例。 步驟53 :根據上述比例得出所述剪切框的四邊要裁切到 的範圍。 本發明在印表機上實現列印圖片的方法的較佳實施方式 中’所述印表機1〇〇上設有一讀卡器,用以讀取一存儲卡 099117583 表單編號A0101 第8頁/共19頁 0992031233-0 201145153 上的待列印圖片。所述印表機⑽設有無線傳輸設備,用 以獲取一電子設備上的待列印圖片。 [0051] [0052] Ο [0053] [0054] [0055] Ο [0056] [0057] [0058] [0059] 綜上所述,本發日祕合乎發㈣射請條件妥依法提 出專利中請。惟’以上所述僅為本發明之較佳實施例, 舉凡熟悉本案技藝之人士其所麦依本案之創作精神所作 ,等效修飾或變化,皆應涵蓋於以下之申請專利範圍^ 【圖式簡單說明】 m是本發明具有圖片編輯功能的印表機的較佳實施 中的功能模組圖。 ^ ^ 式 圖2是本發明在印表機上實現列印圖片的方法的較 方式中的流程圖。 方 圖3是本發明在印表機上實現列印圖片的方法的較 ‘ 方式中的原理圖。 施 圖4是本發明在印表機上實現列印圖片的方法的較佳實施 方式中的調節圖片亮度的流程圖。 圖5是本發明在印表機上實現列印圖片的方法的較佳實方 方式中的記錄列印圖片數量的流程圖。 ' 圖6是本發明在印表機上實現列印圖片的方法的較佳實施 方式中的剪切圖片的流程圖》 【主要元件符號說明】 印表機:100 存儲單元:110 099117583 表·單編號A0101 第9頁/共19頁 0992031233-0 201145153 [0060] [0061] [0062] [0063] [0064] [0065] [0066] 顯示單元:120 讀取模組:130 顯示模組:140 識別模組:150 處理模組:160 列印模組:170 記錄模組:180 099117583 表單編號A0101 第10頁/共19頁 0992031233-0[0002] Currently, when printing a picture using a printer, it is necessary to first connect the printer to a computer. The user places the picture or photo on the computer' and sets the number of sheets to be printed on the computer. Or, modify the pictures or photos to be printed on the computer, for example, crop, change brightness, etc. When the user has modified the printed picture or photo, he can print the favorite picture or photo by the printer. [0003] However, this printing method requires the user to copy the pictures or photos in the digital camera to the computer before printing by the printer. This is not very convenient for the user. SUMMARY OF THE INVENTION [0004] In view of the above, it is necessary to provide a printer having a picture editing function and a method for printing the same. [0005] A printer having a picture editing function, the printer comprising: [0006] a storage unit, storing an initial picture, a display screen, displaying a brightness bar and adjusting the brightness of the initial picture Point; 圃-display group, for lin-(4) Μ 上 screen display 099117583 Form No. Α0101 3rd 兵 / Bing 0992031233-0 201145153 [0009] An identification module for identifying the user on the display screen a conversion operation performed by the initial image; [0010] a processing module, configured to generate a transformed image according to the transformation operation recognized by the recognition module and transmit the same to the display module for display on the display screen, the processing module includes [0011] obtaining a sub-module, configured to obtain a length value of the brightness bar on the display screen and obtain a distance moved by the adjustment point on the display screen on the brightness bar; [0012] a sub-module, configured to calculate a ratio of the distance to a length value of the brightness bar; [0013] an adjustment sub-module, configured to obtain, according to the ratio, a brightness that needs to be adjusted by the initial picture; [0014] - print Group, for converting the print image. [0015] A method for implementing a print image on a printer, comprising the following steps: [0016] a storage unit stores an initial picture; [0017] a display module is used to display the initial picture on a display screen Displaying the display 9 [0018] the display screen displays a brightness bar and an adjustment point for adjusting the brightness of the initial picture; [0019] an identification module identifies a user performing a transformation operation on the initial picture on the display screen; [0020] The processing module processes the initial picture according to the user's operation and 099117583 Form No. A0101 Page 4 / 19 pages 0992031233-0 201145153 [0022] [0023] [0024] [0025] Generating a transformed picture; acquiring a length value of the brightness bar on the display screen and obtaining a distance distance of the (four) point on the display screen on the brightness bar; The ratio of the distance to the length value of the brightness bar [0026] G [0027] an adjustment sub-module obtains the brightness that the initial picture needs to be adjusted according to the ratio; a printing module prints the ball conversion circle piece . Compared with the prior art, in the above-mentioned printer having a picture editing function and a method for realizing printing a picture on a printer, the processing module processes the initial picture according to a user operation and generates a transformed picture. The printing module prints the transformed picture, which is convenient and quick. [Embodiment] Please refer to Fig. 1, which is a hardware structural diagram of an electronic device according to a preferred embodiment of a printer having a picture editing function. The printer 1 〇〇 寺 — - storage unit 11 〇, a display unit (display screen) 12 〇, - $ 5 capture; f | group 1 3 〇, a display module 14 0, an identification module 1 50, a processing chess town 160, a printing module 17 and a recording module 180. The reading module 130 is configured to extract an initial picture from the storage unit 丨1 of the printer 100. The display module 140 is configured to display the read first monster on the display unit 12A. The identification module m is displayed on the display unit 120 of the user 099117583. The identification module 'the initial operation on the display unit 120. The processing module 160 is used according to the user's ί A0101 5 true/total 19 page diagram > 1 operation $ 201145153 The picture is processed and produces a transformed picture. The printing module 170 is used to print the transformed picture. In a preferred embodiment, described herein The display screen of the display unit 120 is a touch screen, and the manner of the touch operation may be a finger touch or a touch such as a touch pen. [0028] Please refer to FIG. 2 at the same time, the present invention realizes printing pictures on the printer. In a preferred embodiment of the method, the method includes the following steps: [0029] Step S10: The reading module 130 reads an initial picture from a storage unit 110 of the printer 100; [0030] S11: The display module 140 displays the read initial picture on a display unit 120. [0031] Step S12: the identification module 150 identifies that the user is facing the initial picture on the display unit 120. Transform operation performed; [0032] Step S13: The processing module 160 processes the initial picture according to a user operation and generates a transformed picture; [0033] Step S14: The printing module 170 prints the converted picture. [0034] Referring to FIG. 3, the program for displaying the read initial picture on the display unit 120 is a first program, and the processing module 160 performs the initial according to the user's operation. The program for processing and generating a transformed picture is a second program, and the first program communicates with the second program by an internal program communication service (I PC) to reduce memory. The invention is structured in the androidTM operating system, and the memory size occupied by each program cannot exceed the set value. Thus, the user is in the different interface of 099117583 Form No. A0101 Page 6/19 pages 0992031233-0 201145153 The above operations are performed using different programs to reduce the occupation of memory. The transformed picture is cached in the storage unit 110 of the printer 100 for printing the conversion. [0035] the internal program communication service sets an attribute of the picture in the first program, and transmits the attribute to the second program to convert the attribute of the picture in the second program. For example, The brightness value of the picture is stored in the first program, and the second program acquires the brightness value, and on this basis, changes the brightness of the picture according to the adjustment of the user. ^ [0036] Please refer to FIG. The transformed picture includes a picture generated by cutting, rotating, and brightening the picture. The preferred embodiment of the method of the invention for printing a picture on a printer also includes other transformations made to the picture. A brightness bar including an adjustment point is displayed on the display screen, and the adjusted brightness is obtained according to the ratio of the distance moved by the adjustment point to the brightness bar. The method for the processing module 160 to adjust the brightness of the picture includes the following steps: [0037] Step S30: Acquire a length value of the brightness bar. [0038] Step S31: Obtain a distance moved by the adjustment point on the brightness bar 〇 [0039] Step S32: Calculate a ratio of the distance to a length value of the brightness bar. [0040] Step S33: Deriving the brightness of the initial picture to be adjusted according to the ratio. Referring to FIG. 5, after the printer 100 prints the converted picture, the recording module 180 records the number of the converted pictures. The present invention at 099117583 Form No. A0101, page 7 / 19 pages 0992031233-0 201145153 A preferred embodiment of a method of recording a print on a printer to print the number of pictures includes the following steps: [0042 [0046] [0048] [0050] [0050] [0050] thumbnail step S4G: the display unit 12() displays a plurality of initial pictures, step S41: selected - to be listed Print the picture and select the quantity you want to print. Step S42: Print the printing plate and record the number of the pictures to be printed. Referring to FIG. 6, the display unit 120 displays a cut frame for cutting a picture, and the cut frame obtains the cut picture according to the adjusted ratio. In a preferred embodiment of the method for printing a picture on a printer, the method for the processing module 160 to cut a cymbal includes the following steps: Step 50: Acquire a picture & width and height. Set the cut box to a rectangular box. :* · ; ;....... .. . . Step 51: When the clipping frame is changed, get the coordinate value (xl, yl) of the top left vertex of the #cut box and the coordinate value of the right T corner vertex (x2, Y2) Step 52: Calculate the ratio of the abscissa χΐ, χ2 to the width, and the ratio of the ordinate y 1, y 2 to the face. Step 53: According to the above ratio, the range to which the four sides of the cutout frame are to be cut is obtained. In a preferred embodiment of the method for printing a picture on a printer, the printer is provided with a card reader for reading a memory card 099117583 Form No. A0101 Page 8 / A total of 19 pages 0992031233-0 201145153 pictures to be printed. The printer (10) is provided with a wireless transmission device for acquiring a picture to be printed on an electronic device. [0055] [0055] [0058] [0059] [0059] In summary, the present day secret is in accordance with the (four) shooting conditions, the law is required to apply for patents. . However, the above description is only the preferred embodiment of the present invention, and those who are familiar with the art of the present invention should make the equivalent modifications or changes in the spirit of the present invention, and the equivalent modifications or variations should be included in the following patent application scope. Brief Description] m is a functional module diagram of a preferred embodiment of the printer having the picture editing function of the present invention. ^ ^ Figure 2 is a flow chart in a more mode of the method of the present invention for printing a picture on a printer. Figure 3 is a schematic diagram of a more <RTI ID=0.0>>>> Figure 4 is a flow chart for adjusting the brightness of a picture in a preferred embodiment of the method of printing a picture on a printer. Figure 5 is a flow chart showing the number of printed print pictures in a preferred embodiment of the method of printing a picture on a printer in accordance with the present invention. Figure 6 is a flow chart of a cut picture in a preferred embodiment of the method for realizing printing a picture on a printer. [Explanation of main component symbols] Printer: 100 Storage unit: 110 099117583 Table · Single No. A0101 Page 9 / 19 pages 0992031233-0 201145153 [0061] [0064] [0066] [0066] Display unit: 120 Read module: 130 Display module: 140 Identification Module: 150 Processing Module: 160 Printing Module: 170 Recording Module: 180 099117583 Form No. A0101 Page 10 / Total 19 Page 0992031233-0