Time of Update: 2015-04-05
構建類 meerkat移動直播系統,構建meerkat本文原創自 http://blog.csdn.net/voipmaker
Time of Update: 2015-04-05
IOS開發音頻與視頻,IOS開發音頻視頻音頻與視頻的簡單用法:使用音訊時候需要匯入#import <AVFoundation/AVFoundation.h>@interface ViewController (){ AVPlayer *player; }@end@implementation ViewController- (void)viewDidLoad {
Time of Update: 2015-04-05
UIImageView的建立(React Native),uiimageviewreactUIImageView的建立(React Native)by 伍雪穎'use strict';var React = require('react-native');var { AppRegistry, StyleSheet, View, Image,} = React;class UIImageView extends React.Component {
Time of Update: 2015-04-04
IOS 網路開發NSURLSession(四)UploadTask(上傳資料+圖片), 原創blog,轉載請註明出處 blog.csdn.net/hello_hwc前言: UploadTask繼承自DataTask。不難理解,因為UploadTask只不過在Http請求的時候,把資料放到Http Body中。所以,用UploadTask來做的事情,通常直接用DataTask也可以實現。不過,能使用封裝好的API會省去很多事情,何樂而不為呢? Demo下載連結
Time of Update: 2015-04-04
IOS圖片上添加浮水印文字(微博片上得浮水印文字),ios浮水印建一個類目(不知道怎麼建的可以去百度一下) UIImage的類目類目的.h檔案 檔案名稱為UIImage+watermark#import <UIKit/UIKit.h>@interface UIImage (watermark)//定義一個方法- (UIImage *)watermarkImage:(NSString *)text;@end.m檔案的實現#import "UIImage
Time of Update: 2015-04-04
搜尋方塊和導覽列(React Native),reactnative搜尋方塊和導覽列(React Native)by 伍雪穎'use strict';var React = require('react-native');var { AppRegistry, StyleSheet, View, TextInput,} = React;class SearchBar extends React.Component { render() {
Time of Update: 2015-04-03
[Android] 針對產生的圖片檔案在系統Gallery不顯示的處理之前遇到過一個問題,就是發現我在程式中產生一個新的 Bitmap 之後,當我開啟系統的 Gallery 查看時,並沒有看到新產生的映像。然而開啟檔案瀏覽器,找到儲存 Bitmap 所在的檔案夾下,還能看到程式產生的 Bitmap 檔案。也就是說,檔案其實存在,但 Gallery 似乎並沒有重新整理。之後,又一個新的行為證實了我的觀點,即,每次重啟裝置之後, Gallery 中就會顯示新產生的 Bitmap
Time of Update: 2015-04-02
Android自訂圓角ImageView,androidimageviewpublic class MyCirleImageView extends ImageView {private static int RADIUS = 4; // 預設圓角的寬高是8dip,可以設定有參構造,傳入需要的值public MyCirleImageView(Context context, AttributeSet attrs) {super(context,
Time of Update: 2015-04-02
android POI搜尋,附近搜尋,周邊搜尋定位介紹POI搜尋有三種方式,根據範圍和檢索詞發起範圍檢索poiSearchInbounds,城市poi檢索poiSearchInCity,周邊檢索poiSearchNearBy。下以周邊檢索為例介紹如何進行檢索並顯示覆蓋物PoiOverlay: public int poiSearchNearBy(java.lang.String key, GeoPoint pt, int radius)根據中心點、半徑與檢索詞發起周邊檢索.
Time of Update: 2015-04-01
尋找整數,基礎練習尋找整數import java.io.*;public class Main{ public static void main(String[]args)throws Exception{ BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); int a = Integer.parseInt(bf.readLine()); int b[] = new int[
Time of Update: 2015-04-01
【Android開發經驗】用RxJava.Observable取代AsyncTask和AsyncTaskLoader-RxJava Android模版,androidasynctask 轉載請註明出處http://blog.csdn.net/zhaokaiqiang1992 歡迎關注ndroid-tech-frontier開源項目,定期翻譯國外Android優質的技術、開源庫、軟體架構設計、測試等文章譯者 : ZhaoKaiQiang 校對者: chaossss 狀態 :
Time of Update: 2015-03-31
The Clean Architecture,cleanarchitecture原文連結:The Clean Architecture譯者:zimoguo校對者:Mr.Simple在過去的幾年中,我們已經看到了關於系統架構的一些想法 :Hexagonal Architecture(六角架構)(a.k.a. Ports and Adapters) 這種架構是由Alistair Cockburn提出的,並由Steve Freeman和Nat Pryce在他們的書Growing Object
Time of Update: 2015-03-29
android擷取多媒體庫的視頻、音頻、圖片,從媒體庫中尋找音頻、視頻、圖片檔案的相關資訊,並擷取視頻、圖片、專輯圖片的縮圖和一些檔案操作package com.uwatch.swconnectservice.util;import java.io.File;import java.io.FileDescriptor;import java.io.FileInputStream;import java.io.FileNotFoundException;import
Time of Update: 2015-03-29
Android開發之網狀圖片擷取做畢設用到的!網狀圖片的擷取這裡就以我的情況簡單的介紹一下。 首先設計布局,直接拖幾個控制項就ok開始在Acitivity中增加功能在網上照一張圖片的連結:http://www.chzu.edu.cn/page/main1152/images/banner.jpg貼上主要的代碼: private Bitmap getUrlImageMap() {URL imageUrl = null;Bitmap bitmap = null;try
Time of Update: 2015-03-29
Android影像處理技術(實現Android中的PS)(五),影像處理android
Time of Update: 2015-03-28
NSURLSession(三)POST請求—>上傳圖片,nsurlsessionpost這個例子,還是以新浪微博為例。首先在宏定義出POST要求標頭的一個屬性:請求體邊界,它是幹什麼用的呢,先別急,往下看#define boundary @"AaB03x" //設定邊界 參數可以隨便設定 //1.構建URL NSURL *url=[NSURL URLWithString:@&
Time of Update: 2015-03-27
Android圖片輪播,Android在國內這般火,這就試試水。。。不多說,直接上實踐結果,根據前輩經驗,首先看:AndroidManifest.xml<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"
Time of Update: 2015-03-26
關於註冊了通知/監聽 必須登出,註冊通知監聽登出An instance 0x15618e00 of class UITextView was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint
Time of Update: 2015-03-24
Android 圖片截取人物頭像(仿逗拍)要求根據給定的頭部模板,截取資源圖。背景圖可支援拖動,縮放,拖動旋轉分析定義剪下浮層,實現背景資源圖的操作view實現繪製剪下浮層/** * 初始化繪製筆 */ private void initRectPaint() { mFloatPaint = new Paint(); mFloatPaint.setAlpha(mAlpha);
Time of Update: 2015-03-20
Android影像處理 下面介紹Android影像處理。RGBA模型:red green blue alpha1.改變其色像,透明度和亮度。2.使用顏色矩陣處理映像3.改變像素處理映像 1.使用ColorMatrix改變色相,透明度和亮度擷取新的映像的步驟:(1)建立新的BitMap,使用createBitmap()方法(2)使用ColorMatrix對象改變其色相,色值和亮度 /** * Set the rotation on a color axis