www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/@javaToolbar/pNewCanvas.m
function imdata = pNewCanvas(obj, w, h, Color) %PNEWCANVAS Create a blank new canvas section % % IMDATA = PNEWCANVAS(OBJ, W, H, COLOR) creates a blank piece of canvas, % filled in with the given defualt color. % Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc. imdata = zeros(h,w,3,'uint8'); imdata(:,:,1) = Color(1); imdata(:,:,2) = Color(2); imdata(:,:,3) = Color(3);