public Note add(String photoId, int noteX, int noteY, int noteWidth, int noteHeight, String noteText) throws JinxException {
    JinxUtils.validateParams(photoId, noteText);
    Map<String, String> params = new TreeMap<>();
    params.put("method", "flickr.photos.notes.add");
    params.put("photo_id", photoId);
    params.put("note_x", Integer.toString(noteX));
    params.put("note_y", Integer.toString(noteY));
    params.put("note_w", Integer.toString(noteWidth));
    params.put("note_h", Integer.toString(noteHeight));
    params.put("note_text", noteText);
    return jinx.flickrPost(params, Note.class);
  }
public Note add ( String photoId , int noteX , int noteY , int noteWidth , int noteHeight , String noteText ) throws JinxException { JinxUtils . validateParams ( photoId , noteText ) ; Map < String , String > params = new TreeMap < > ( ) ; params . put ( "method" , "flickr.photos.notes.add" ) ; params . put ( "photo_id" , photoId ) ; params . put ( "note_x" , Integer . toString ( noteX ) ) ; params . put ( "note_y" , Integer . toString ( noteY ) ) ; params . put ( "note_w" , Integer . toString ( noteWidth ) ) ; params . put ( "note_h" , Integer . toString ( noteHeight ) ) ; params . put ( "note_text" , noteText ) ; return jinx . flickrPost ( params , Note . class ) ; }
Add a note to a photo. Coordinates and sizes are in pixels, based on the 500px image size shown on individual photo pages.
<br>
This method requires authentication with 'write' permission.

@param photoId    (Required) The id of the photo to add a note to.
@param noteX      (Required) The left coordinate of the note.
@param noteY      (Required) The top coordinate of the note.
@param noteWidth  (Required) The width of the note.
@param noteHeight (Required) The height of the note.
@param noteText   (Required) The text of the note.
@return object with the ID for the newly created note.
@throws JinxException if required parameters are missing, or if there are any errors.
@see <a href="https://www.flickr.com/services/api/flickr.photos.notes.add.html">flickr.photos.notes.add</a>