get the image size in pixels in Python API #20584

Closed
opened 2010-01-06 10:47:51 +01:00 by Kevin Roy · 3 comments

%%%Like in 2.4x API with Image.Image.GetSize(), this patch gives you access to that info with like this :

bpy.data.images['some image'].size[]

where is:
0 => size_x
1 => size_y%%%

%%%Like in 2.4x API with Image.Image.GetSize(), this patch gives you access to that info with like this : bpy.data.images['some image'].size[<n>] where <n> is: 0 => size_x 1 => size_y%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'

%%%committed to svn.%%%

%%%committed to svn.%%%

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#20584
No description provided.