• 大小: 1.81MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-04
  • 语言: Matlab
  • 标签: matlab  实现水印  

资源简介

matlab 实现水印。有着详细的代码解析,同时还包含matlab打包成可执行文件的讲解

资源截图

代码片段和文件信息

function varargout = watermark(varargin)
% WATERMARK MATLAB code for watermark.fig
%      WATERMARK by itself creates a new WATERMARK or raises the existing
%      singleton*.
%
%      H = WATERMARK returns the handle to a new WATERMARK or the handle to
%      the existing singleton*.
%
%      WATERMARK(‘CALLBACK‘hobjecteventDatahandles...) calls the local
%      function named CALLBACK in WATERMARK.M with the given input arguments.
%
%      WATERMARK(‘Property‘‘Value‘...) creates a new WATERMARK or raises the
%      existing singleton*.  Starting from the left property value pairs are
%      applied to the GUI before watermark_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to watermark_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE‘s Tools menu.  Choose “GUI allows only one
%      instance to run (singleton)“.
%
% See also: GUIDE GUIDATA GUIHANDLES

% Edit the above text to modify the response to help watermark

% Last Modified by GUIDE v2.5 25-Mar-2013 15:22:45

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘       mfilename ...
                   ‘gui_Singleton‘  gui_Singleton ...
                   ‘gui_OpeningFcn‘ @watermark_OpeningFcn ...
                   ‘gui_OutputFcn‘  @watermark_OutputFcn ...
                   ‘gui_LayoutFcn‘  []  ...
                   ‘gui_Callback‘   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State varargin{:});
else
    gui_mainfcn(gui_State varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before watermark is made visible.
function watermark_OpeningFcn(hobject eventdata handles varargin)
% This function has no output args see OutputFcn.
% hobject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to watermark (see VARARGIN)

% Choose default command line output for watermark
handles.output = hobject;

% Update handles structure
guidata(hobject handles);

% UIWAIT makes watermark wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = watermark_OutputFcn(hobject eventdata handles) 
% varargout  cell array for returning output args (see VARARGOUT);
% hobject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;



function edit1_Callback(hobject eventdata handles)
% hobject    handle to edit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       3389  2013-03-25 15:50  watermark.fig

     文件       9329  2013-03-25 16:23  watermark.m

     文件     848192  2013-03-25 17:16  mccExcludedFiles.log

     文件       1716  2013-03-25 17:37  readme.txt

     文件       1714  2013-03-25 17:37  readme.txt.bak

     文件    2145329  2013-03-25 17:16  watermark.exe

----------- ---------  ---------- -----  ----

              3009669                    6


评论

共有 条评论