Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
18
Task/Bitmap/MATLAB/bitmap-2.m
Normal file
18
Task/Bitmap/MATLAB/bitmap-2.m
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
>> img = Bitmap(20,30);
|
||||
>> img.fill([30 30 150]);
|
||||
>> img.setPixel([10 15],[20 130 66]);
|
||||
>> disp(img)
|
||||
>> img.getPixel([10 15])
|
||||
|
||||
ans =
|
||||
|
||||
20 130 66
|
||||
|
||||
>> img.getPixel([10 15],'red')
|
||||
|
||||
ans =
|
||||
|
||||
20
|
||||
|
||||
>> img.save()
|
||||
Save Complete
|
||||
Loading…
Add table
Add a link
Reference in a new issue