Skip to main content
Participant
October 4, 2009
Question

bridge sdk question

  • October 4, 2009
  • 1 reply
  • 918 views

hi,

i'd like to port an existing application to bridge. i briefly read the sdk docs but i'm not sure if the bridge sdk offers the opportunities i need:

- can i change the size and position of images on the content pane?

- can i handle mouse events in the content pane?

- do i have read access to the content of images (the bitmap data)?

best regards,

sepp

This topic has been closed for replies.

1 reply

Participant
October 5, 2009

- can i change the size and position of images on the content pane?

not sure what exactly you want to do. But I think no (=not directly)

- can i handle mouse events in the content pane?

yes

- do i have read access to the content of images (the bitmap data)?

yes

Regards,

Markus

seppomatAuthor
Participant
October 5, 2009

Hi Markus,

thanks for your response...

>> can i change the size and position of images on the content pane?

> not sure what exactly you want to do. But I think no (=not directly)


i'd like to rearrange the images on the content pane in a different than the normal order (based on image content) and i'd like to pan and zoom into this order by the mouse and the mousewheel...

what do you mean by 'not directly'. is there some indirect way?

Best Regards,

Sepp
Participant
October 6, 2009

Hi Sepp,

i'd like to rearrange the images on the content pane in a different than the normal order (based on image content) and i'd like to pan and zoom into this order by the mouse and the mousewheel...

Oh, I think you can't do that. And even if you find a way to solve this, it will will we full of workarounds and may not be fluent.

You can build custom views in the content pane via the new Collection Class in CS4 (or saved Queries in CS2,CS3). I'm not sure if you can edit the sort order directly in this class. Maybe you must du that by editing the metadata of a thumbnail and sort based on the edited field (=slow).

Allthough you have access to the image content via the bitmapData Class I don't think that the javascript api is fast enough the perform a good image analysation. You don't have access to the pixel array, you must call getPixel and setPixel individually.

Bridge provides a lot of Thumnail and window based events, but I don't think that the DOM gives you access to the mouse events, correct me if I'm wrong.

Sorry, this may be bad news. But I may be wrong anyway, Bridge is full of surprises

Markus