Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TP4 - Manipulation d’images
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
L3_InfoAMU
S3
Programmation 2
TP4 - Manipulation d’images
Commits
aa695e0f
Commit
aa695e0f
authored
1 month ago
by
SAEZ Theo
Browse files
Options
Downloads
Patches
Plain Diff
Mise à jour du constructeur MatrixGrayImage et des méthodes getHeight et getWidth
parent
96f901bb
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/MatrixGrayImage.java
+5
-10
5 additions, 10 deletions
src/main/java/MatrixGrayImage.java
with
5 additions
and
10 deletions
src/main/java/MatrixGrayImage.java
+
5
−
10
View file @
aa695e0f
...
...
@@ -32,23 +32,18 @@ public class MatrixGrayImage implements GrayImage {
@Override
public
int
getWidth
()
{
// TODO : Changer les instructions pour retourner la largeur de l'image.
return
600
;
return
this
.
width
;
}
@Override
public
int
getHeight
()
{
// TODO : Changer les instructions pour retourner la hauteur de l'image.
return
400
;
return
this
.
height
;
}
public
MatrixGrayImage
(
int
width
,
int
height
){
/* TODO : Modifier les instructions pour initialiser correctement
les propriétés de l'instance.
*/
this
.
width
=
0
;
this
.
height
=
0
;
this
.
pixels
=
null
;
this
.
width
=
width
;
this
.
height
=
height
;
this
.
pixels
=
new
GrayColor
[
this
.
width
][
this
.
height
];
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment