Turn off the headers for the rendered window

I am using python script to render the image. I only want to show the IMAGE_EDITOR area( I think the rendered image gets shown in IMAGE_EDITOR area). It should show only the rendered image.

So basically I am trying to do 2 things here

• Render the image
• Show only the area with the image.

I hope I am clear on this. I tried to render image by -

for area in bpy.context.screen.areas:
if area.type == 'INFO':
override = bpy.context.copy()
override['area'] = area
bpy.ops.render.render(override, use_viewport=True)
break


But it doesn't work.

EDIT: So as iKlsR told, I used a differnt display mode. I am able to get the whole rendered image using

bpy.data.scenes["Scene"].render.display_mode = 'FULL'
for area in bpy.context.screen.areas:
if area.type == 'INFO':
override = bpy.context.copy()
override['area'] = area
bpy.ops.render.view_show('INVOKE_DEFAULT')
bpy.ops.render.render(override, use_viewport=True)
break


However, I need just the rendered area. Not the headers . How can I make them turn off?

• In regards to your edit. I'm not sure how to entirely disable headers. There is a screen layout called 3d view full that does this somehow for the 3d viewport, you could investigate from there. – iKlsR Aug 16 '14 at 20:39

• Awesome, Thanks. Here, I did bpy.data.scenes["Scene"].render.display_mode = 'WINDOW'. But when I did bpy.ops.render.render(use_viewport=True) nothing happens. – iamkhush Aug 15 '14 at 21:27